User Tools

Site Tools


cron_automation

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
cron_automation [2016/08/03 21:49] – [Working Example] walkeradmincron_automation [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Cron Automation ======= ====== Cron Automation =======
 +<color darkorange>2016</color>
 \\  \\ 
 \\  \\ 
-This information comes from "https://help.ubuntu.com/community/CronHowto"\\ +\\  
 +This information comes from  
 +"https://help.ubuntu.com/community/CronHowto"\\ 
 \\  \\ 
 To edit the cron job list: To edit the cron job list:
 \\  \\ 
-    sudo crontab -e+    crontab -e (don't sudo, or you will change root cron, not your user cron)
 \\  \\ 
 Then add your job, which has the format: Then add your job, which has the format:
Line 26: Line 29:
 \\  \\ 
     00 03 0 0 0 /mnt/usbstorage/backups/scripts/pibackup     00 03 0 0 0 /mnt/usbstorage/backups/scripts/pibackup
 +\\ 
 +===== Check if Cron is Running =====
 +\\ 
 +    /etc/init.d/cron status
 +    
 +    ● cron.service - Regular background program processing daemon
 +      Loaded: loaded (/lib/systemd/system/cron.service; enabled)
 +      Active: active (running) since Wed 2016-08-03 20:37:22 BST; 19h ago
 +      Docs: man:cron(8)
 +      Main PID: 453 (cron)
 +          CGroup: /system.slice/cron.service
 +              └─453 /usr/sbin/cron -f
 +\\ 
 +\\ 
 +===== Check Jobs =====
 +\\ 
 +    crontab -lu pi
 +    
 +    Shows current cron jobs for user pi
 \\  \\ 
 \\  \\ 
 +
  
cron_automation.1470257382.txt.gz · Last modified: 2023/03/09 22:35 (external edit)