rementis has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to pass a variable as a parameter to another script but special characters throw it for a loop.
Basically a menu program gets the password from the user, then calls another perl script which in turn loops through a list of hosts issuing a command like this:
my $temp = `ssh $_ autopasswd_oracle.exp $user $password`;
($_ contains a hostname)
Now if you give it a good password like kjiuIU*& then it chokes and gets error messages. Any ideas would be more than welcome.
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Controlling the shell...
by Roy Johnson (Monsignor) on Apr 08, 2005 at 22:45 UTC | |
|
Re: Controlling the shell...
by afresh1 (Hermit) on Apr 09, 2005 at 01:15 UTC | |
|
Re: Controlling the shell...
by gloryhack (Deacon) on Apr 09, 2005 at 00:17 UTC | |
|
Re: Controlling the shell...
by wazoox (Prior) on Apr 09, 2005 at 08:48 UTC | |
|
Re: Controlling the shell...
by eXile (Priest) on Apr 09, 2005 at 01:15 UTC | |
|
Re: Controlling the shell...
by mnooning (Beadle) on Apr 09, 2005 at 20:44 UTC | |
|
Re: Controlling the shell...
by tlm (Prior) on Apr 10, 2005 at 01:09 UTC |