Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Can a perl script monitor another?
May 17, 2005, 6:31 pm
rate this thread
I have been having issues with some of my scripts hanging indefinitely
during operation and it will not do. My plan to fix this issue is to
create a script that will run these "troublesome" scripts and monitor
the elapsed time. If the given time constraint is exceeded then it
will kill the script it is running. Would this be possible?
Re: Can a perl script monitor another?
I usually use a non-perl solution on systems that have 'expect'.
linux% cat /usr/bin/timed-run
# run a program for a given amount of time
# i.e. time 20 long_running_program
set timeout [lindex $argv 0]
eval spawn [lrange $argv 1 end]
- » CGI script: release browser after spawning new process
- — Previous thread in » PERL Discussions