Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!crdgw1!barnett From: barnett@grymoire.crd.ge.com (Bruce Barnett) Newsgroups: comp.lang.perl Subject: failsafe remote command in perl? Message-ID: Date: 22 Mar 91 14:56:36 GMT Sender: news@crdgw1.crd.ge.com Reply-To: barnett@crdgw1.ge.com Organization: GE Corp. R & D, Schenectady, NY Lines: 19 I want to execute a rsh or rcp command on hundreds of systems. (Trying to gather information on system configurations, etc.) The problem I have is: some of those darn machines have the nerve to be down! :-) Sometimes they don't answer to a ping. Other times they ping, but somertimes the rsh or rcp command hangs on forever without terminating. I am looking for a Perl procedure that will let me execute a rsh or rcp, but if it doesn't get done in five seconds, to abort the process, log the error, and try the next machine. Sounds like a useful procedure. Has anyone done something like this. Or perhaps someone can help me with a rought outline of the code? (If you are not too busy discovering new features in Perl 4.0 - that is. :-) -- Bruce G. Barnett barnett@crd.ge.com uunet!crdgw1!barnett