in reply to How to Run a shell script which is on a remote server using a Perl script

Why use Perl?

$ for S in `cat file_of_target_addrs` > do > ssh $S '/path/to/command/to/that.sh' > done $ (assuming your shell supports for loops, sub with local syntax as need +ed)
What in your problem space requires Perl?


Be Appropriate && Follow Your Curiosity
  • Comment on Re: How to Run a shell script which is on a remote server using a Perl script
  • Download Code

Replies are listed 'Best First'.
Re^2: How to Run a shell script which is on a remote server using a Perl script
by cdarke (Prior) on May 07, 2009 at 14:26 UTC
    Why use cat? Kill the cat!
    $ while read S > do > ssh $S '/path/to/command/to/that.sh' > done < file_of_target_addrs