RajNaidu has asked for the wisdom of the Perl Monks concerning the following question:
I need a perl script which remsh to another machine with different login and execute some command. I tried executing a simple perl code, but it does not execute the required command in the remote machine. Here in the remote machine /tmp/1 is empty, it does not output the ls command in /tmp/1
#!/app/perl `/usr/bin/remsh guitar.cc.ux.com << EOF perlguru go4fun ls > /tmp/1 EOF`
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: remsh using perl script
by Corion (Patriarch) on Jan 04, 2012 at 10:14 UTC | |
by RajNaidu (Novice) on Jan 04, 2012 at 11:18 UTC | |
by roboticus (Chancellor) on Jan 04, 2012 at 13:21 UTC | |
|
Back to
Seekers of Perl Wisdom