Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
but when I run the same cmd with ssh I get an error.$line=`perl \-e '\$s = shift; \$SIG{ALRM} = sub { kill INT => \$p }; e +xec(\@ARGV) unless \$p = fork; alarm \$s; waitpid \$p, 0 ' 3 'ls -ltr +'`;
Can anyone suggest where I am going worng in that please Thank you kindly$cmd=`ssh server 'perl \-e '\$s = shift; \$SIG{ALRM} = sub { kill INT +=> \$p }; exec(\@ARGV) unless \$p = fork; alarm \$s; waitpid \$p, 0 ' + 3 'ls -ltra' '`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl -e in ssh
by ikegami (Patriarch) on Apr 13, 2010 at 16:46 UTC | |
|
Re: perl -e in ssh
by salva (Canon) on Apr 13, 2010 at 17:36 UTC | |
by ikegami (Patriarch) on Apr 13, 2010 at 17:59 UTC | |
by Anonymous Monk on Apr 13, 2010 at 18:42 UTC | |
by Anonymous Monk on Apr 13, 2010 at 19:05 UTC | |
by Anonymous Monk on Apr 13, 2010 at 19:06 UTC | |
by ikegami (Patriarch) on Apr 13, 2010 at 19:22 UTC | |
by Anonymous Monk on Apr 13, 2010 at 17:46 UTC | |
|
Re: perl -e in ssh
by graff (Chancellor) on Apr 14, 2010 at 01:37 UTC | |
|
Re: perl -e in ssh
by moritz (Cardinal) on Apr 13, 2010 at 16:42 UTC | |
by Anonymous Monk on Apr 13, 2010 at 16:58 UTC | |
by moritz (Cardinal) on Apr 13, 2010 at 17:01 UTC | |
by Anonymous Monk on Apr 13, 2010 at 17:22 UTC | |
by moritz (Cardinal) on Apr 13, 2010 at 17:41 UTC |