allow potential special characters '@' and '$' in system call

W

wong_powah

I want to change a system call to allow potential special characters
'@' and '$'.
This work for regular character in $PASSWORD.
$rc = system("/usr/local/bin/mylogin -i 1234:5678 -s 3 -o -p $PASSWORD
1>login.out 2>login.err");
How to change it to a form that allow potential special characters '@'
and '$' in $PASSWORD?

I tried this, but it does not work:
$rc = system "/usr/lunasa/bin/salogin", "-i 1234:5678 -s 3 -o -p
$PASSWORD 1>salogin.out 2> salogin.err";

print "rc $rc";

rc 65280
 
J

J. Gleixner

I want to change a system call to allow potential special characters
'@' and '$'.
This work for regular character in $PASSWORD.
$rc = system("/usr/local/bin/mylogin -i 1234:5678 -s 3 -o -p $PASSWORD
1>login.out 2>login.err");
How to change it to a form that allow potential special characters '@'
and '$' in $PASSWORD?

I tried this, but it does not work:
$rc = system "/usr/lunasa/bin/salogin", "-i 1234:5678 -s 3 -o -p
$PASSWORD 1>salogin.out 2> salogin.err";

print "rc $rc";

rc 65280

$rc = system "/usr/lunasa/bin/salogin -i 1234:5678 -s 3 -o -p
\"$PASSWORD\" 1>salogin.out 2> salogin.err";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,206
Messages
2,571,075
Members
47,681
Latest member
hanrywillsonnn

Latest Threads

Top