Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rsh timeout

Status
Not open for further replies.

maunir

MIS
Apr 30, 2002
62
US
Is there a way we could put a timeout value for rsh in perl scripts. I've a script that runs an uptime on all the linux/solaris boxes and when the box is down it waits till the default timeout values.
THX
 
how are you running rsh? via an explicit system call or using a module like Net::Rsh?

________________________________________
Andrew

I work for a gift card company!
 
no module used for this...just simply `rsh $host uptime`
 
Try "rsh --help" or "man rsh" at a prompt and check your various command line parameters. It may be different on various *nix systems, but on FreeBSD, it's -t timeout.

________________________________________
Andrew

I work for a gift card company!
 
already did, i couldn't find anything for solaris or linux....figured out a workaround so i don't have to wait 4 minutes...thanks for your help though
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top