convenientstore has asked for the wisdom of the Perl Monks concerning the following question:
I thought I could easily do below in perlo=`ssh host1 tail -1 /dir/results`
but I coudln't do it... I know there are SSH modules to do this but since I have public key stored in server, I don't need to enter passwd so I thought I could easily do this but it doesn't work..my $result = `ssh host1 echo something | /bin/others`
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: back tick to do ssh
by graff (Chancellor) on Dec 31, 2007 at 00:24 UTC | |
by convenientstore (Pilgrim) on Dec 31, 2007 at 00:36 UTC | |
by kirillm (Friar) on Dec 31, 2007 at 00:47 UTC | |
by graff (Chancellor) on Dec 31, 2007 at 01:02 UTC | |
by kirillm (Friar) on Dec 31, 2007 at 01:07 UTC | |
by graff (Chancellor) on Dec 31, 2007 at 00:44 UTC | |
by convenientstore (Pilgrim) on Dec 31, 2007 at 03:56 UTC | |
by graff (Chancellor) on Dec 31, 2007 at 08:21 UTC |