in reply to Self resurrecting perl scripts
Just a thought but have you looked into the fork() function? I think this would do what you want - you could run the parent once and have it just sit around and wait for the child to either exit successfully or die...in which case you could handle it appropriately. It would take a bit of extra coding but would be better than calling a seperate script through backticks or a system call. HTH.
-Adam Stanley
Nethosters, Inc.