Sunday, December 12, 2010

bash: run a command for n minutes, then SIGHUP it

Programmer Question

Is there any bash/linux command to launch a long-running command, then kill it after n minutes? I guess I could hack something up with perl using fork and kill, but does anyone know of something already out there?



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails