Register a domain and help support LQ
Go Back > Blogs > Skaperen
User Name



Run cron jobs using screen

Posted 09-28-2012 at 01:02 AM by Skaperen
Updated 11-12-2012 at 07:40 PM by Skaperen

I now run many (and soon to be most) of my cron jobs under the screen program. This is easily done by using the screen options "-dmS" followed by the screen session name to use, followed by the command to be run. This will quickly exit, leaving the command running in the disconnected screen session. This seems to work just fine through cron.

You can do this one of two different ways. The simple way is to specify the screen command in the crontab job file directly. Another...
Senior Member
Posted in Uncategorized
Views 1589 Comments 0 Skaperen is offline


All times are GMT -5. The time now is 03:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration