in reply to Command Executing problem in perl.
Just a hint to help yourself:
Print the $cmd string, copy&paste it to your shell and see what happens. Often you see unbalanced "
You have to be careful with output-redirection and using ssh-command. You must be aware of where the output file wil be created, on the remote side or the local side
With the backtick operator you want to grab the output of the script, but as soon as you redirect STDOUT you'll get nothing. So `$cmd` with no assignment is functional more or less equivalent to system($cmd).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Command Executing problem in perl.
by leslie (Pilgrim) on Jun 27, 2012 at 09:14 UTC | |
by Anonymous Monk on Jun 27, 2012 at 09:32 UTC |