How to stop a Linux job after a certain time

Posted on in Categories Howto, Linux, Shell scripting last updated August 2, 2007

This article explains – controlling the duration of scheduled jobs (at and cron jobs) under Linux using nice shell script tricks:

Say you need to debug a pesky problem by running some traces for 30 minutes at midnight, or you would just like to use your Linux system as an alarm clock. This tip helps you stop jobs, such as those started with the cron and at capabilities, after the jobs have run for a certain time, or when some other criteria are met.

Linux tip: Controlling the duration of scheduled jobs

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

1 comment

Leave a Comment