On 4/26/06, Daniel Rychlik <> wrote: > So there is no real easy way to execute programs or batch files from > PERL... We would have to physically touch all 2000 servers to execute > these upgrade scripts... > > Hmmm... has to be a better way. > > > -----Original Message----- > From: $Bill Luebkert [] > Sent: Monday, April 24, 2006 8:30 PM > To: Daniel Rychlik > Cc: > Subject: Re: Executing Remotely > > Daniel Rychlik wrote: > > > How would one execute a batch or executable on a remote computer using > > PERL? > > rsh or ssh or a server running on the remote computer (eg: web server > w/CGI > interface, SNMP, etc) - lots of ways depending on your needs. >
If you will be running the same command on every server, you could use Sysinternals' psexec utility (http://www.sysinternals.com/Utilities/PsExec.html) You could use: psexec @serverlist.txt <commands to run> where serverlist.txt is a file listing all the servers you can the command to run on. If you need to get fancier than that, look at 'expect' (http://expect.nist.gov/). ActiveState also sells a Windows version of expect. -Jason _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
