On Wed, Apr 9, 2008 at 1:42 PM, Armin Garcia <[EMAIL PROTECTED]> wrote: > Hi > > > well i have a problem, i need to terminate some script in 20 minutes, but i > dont know how i can do this, i mean i run my script, but becouse this script > executes another application the only way to stop this aplication is with > "CTRL + C", but i want finish this script in 20 min and i dont want use cron > or at i want to do this with perl. If somebody knows how can i do this with > perl modules or use some function... please let me know.... > > Thanks for all >
Take a look at alarm*. You may also wish for more control of your external processes, and in that case you should look at fork**, waitpid***, exec****, and kill*****. * http://perldoc.perl.org/functions/alarm.html ** http://perldoc.perl.org/functions/fork.html *** http://perldoc.perl.org/functions/waitpid.html **** http://perldoc.perl.org/functions/exec.html ***** http://perldoc.perl.org/functions/kill.html -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/