I have a script to monitor servers which is basically an infinate loop that 
sleeps and runs again. I start from a ssh session by the command: 

ssh -f $server "~/script &"

It seems to be dieing on some of our busier servers.

I'm guessing this is because I'm not doing it properly... but I'm not sure 
exactly what "proper" would be to do this.

My best guess is I should have the script immediately fork a copy of itself 
then die while the forked copy still runs, but I haven't been able to figure 
out how to make that work. Any suggestions would be helpful, especially a 
sample loop like this that just forks a daemon to do something stupid like 
print "foo" ; forever.

Thanks for any help-
Matt

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to