[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
howtos:general_admin:task_scheduling [2015/06/24 14:39 (UTC)] – Added section on Interactive at (cmd) tdrssbhowtos:general_admin:task_scheduling [2015/06/24 18:44 (UTC)] tdrssb
Line 17: Line 17:
 </code> </code>
  
-======Interactive at======+=====Interactive at=====
 Using the command **//at//** with standard input (keyboard) is a little more complicated than typing one line in at the prompt. The command uses an internal "sub-shell" to gather the required information. Once the command information entry is complete, <key>Ctrl-D</key> (EOT) will signify entry completion. The **//-m//** flag specifies a mail message will be sent to the user when the job is finished, regardless if any output was created. Using the command **//at//** with standard input (keyboard) is a little more complicated than typing one line in at the prompt. The command uses an internal "sub-shell" to gather the required information. Once the command information entry is complete, <key>Ctrl-D</key> (EOT) will signify entry completion. The **//-m//** flag specifies a mail message will be sent to the user when the job is finished, regardless if any output was created.
  
Line 27: Line 27:
 job 4 at 2015-06-22 12:01  job 4 at 2015-06-22 12:01 
 darkstar:~%  darkstar:~% 
 +</code>
  
 =====Using cron===== =====Using cron=====
Line 52: Line 53:
 The //crontab// file syntax is: The //crontab// file syntax is:
  
-minute(0-59hour(0-23) day(1-31) month(1-12weekday(0-6command+<code> 
 + # * * * * *  command to execute 
 + # │ │ │ │ │ 
 + # │ │ │ │ │ 
 + # │ │ │ │ └───── day of week (0 - 6(Sun(0) /Mon (1)/Tue (2)/Wed (3)/Thu (4)/Fri (5)/Sat (6)) 
 + # │ │ │ └────────── month (1 12) 
 + # │ │ └─────────────── day of month (1 - 31) 
 + # │ └──────────────────── hour (23) 
 + # └───────────────────────── min (0 - 59) 
 +</code>
  
 Using an asterisk in any placeholder location, will match any value. For example, the following will run //example_script.sh// at noon (1200) everyday during the first three months of the year: Using an asterisk in any placeholder location, will match any value. For example, the following will run //example_script.sh// at noon (1200) everyday during the first three months of the year:
Line 85: Line 95:
   * Originally written by [[wiki:user:vharishankar | vharishankar]]   * Originally written by [[wiki:user:vharishankar | vharishankar]]
   * Contrbutions by [[wiki:user:mfillpot |mfillpot]], [[wiki:user:tdrssb |tdrssb]]   * Contrbutions by [[wiki:user:mfillpot |mfillpot]], [[wiki:user:tdrssb |tdrssb]]
 +  * Example crontab example modified from [[en.wikipedia.org/wiki/cron]]
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must also remove the tag-word "template" below. Otherwise your page will not show up in the Table of Contents --> <!-- You must also remove the tag-word "template" below. Otherwise your page will not show up in the Table of Contents -->
 {{tag>howtos task_scheduling needs_attention author_vharishankar author_mfillpot}} {{tag>howtos task_scheduling needs_attention author_vharishankar author_mfillpot}}
  
 howtos:general_admin:task_scheduling ()