Hi monks,
I am using rsh in my perl script to execute some commands on a remote host and get some data.Now the problem is that in case if the remote host is down then my script just hangs at that particular point and I have to do ctrl c and start all over again.I want to know that is there some way or the rsh return type which I can use and with thet help of that I can decide whether i want to use rsh or not.
I mean to say that I will take the return value of rsh and depending upon that I will set some flag and use that flag.
Can anyone suggest something?plz help