|
|
| P is for Practical | |
| PerlMonks |
running program?by rsiedl (Friar) |
| on May 24, 2006 at 21:55 UTC ( [id://551484]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
hi monks, I'm running a program on a fedora box which keeps dying. the program is written in C++ and open source. What i would like to do is write a "wrapper" which monitors if the program is running or not and restarts it if it has died (until i learn C++ and fix the original prob). I'm guessing something like: does that look like a good way to start or can someone suggest something better? cheers, reagen updated to reflect jhourcle's notes about while and else. didnt put much thought into the code before posting and it shows :)
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||