Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Answer: How do I execute a list of Unix commands from inside a perl program

by cleen (Pilgrim)
on Feb 25, 2001 at 07:22 UTC ( #60719=categorized answer: print w/replies, xml ) Need Help??

Q&A > network programming > How do I execute a list of Unix commands from inside a perl program - Answer contributed by cleen

IMHO with the information provided, it would be best to have the script on one server parse out the commands then do a form of remote command via ssh or kerberized (encrypted) rsh.
open(CMDS, "file_of_commands"); while (<CMDS>) { chomp; # ssh -l username machine "$_"; }

  • Comment on Answer: How do I execute a list of Unix commands from inside a perl program
  • Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Mr. Muskrat]: (considered) Re^3: Please help with Regexp::Common needs to be reparented to Re^2: Please help with Regexp::Common
[Mr. Muskrat]: Is it just me or does that timeout issue seems to be happening more often lately?

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-01-19 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (170 votes). Check out past polls.