[kwlug-disc] Clock-time limits

Khalid Baheyeldin kb at 2bits.com
Wed May 6 23:32:33 EDT 2009


>
> I thought that atd might support time-limited execution in addition to
> delays and batching.  Some searching has not turned up any info in this
> direction.  Does anyone know if/how at(d) might be used to solve Chris'
> problem?
>

That is another option too. Something like this:

yourprogram -options &
CMD_PID=$!

at now +300 seconds
kill $CMD_PID

Or you can store the PID in a file and check that too.
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20090506/d85baf74/attachment.htm>


More information about the kwlug-disc mailing list