Do you know where your variables are? | |
PerlMonks |
running program?by rsiedl (Friar) |
on May 25, 2006 at 01:55 UTC ( [id://551484]=perlquestion: print w/replies, xml ) | Need Help?? |
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
|
|