in reply to process monitoring script

Well, this isn't a code writing service. Show what you tried, how it failed and you'll likely get some help. How do I post a question effectively?, Tutorials, http://learn.perl.org.