User Tools

Site Tools


crontab

Differences

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

Link to this comparison view

Next revision
Previous revision
crontab [2012/09/23 22:04] – created admincrontab [2014/04/29 18:03] (current) francesco
Line 1: Line 1:
-Oggi (24 settembre 2012) il mio crontab -e dà questo:+Per risvegilare il server automaticamente, uso il comando **rtcwake** 
 + 
 +Vedere qui: http://askubuntu.com/questions/61708/automatically-sleep-and-wake-up-at-specific-times 
 + 
 +---- 
 + 
 + 
 +Oggi (19 dicembre 2012) il mio crontab -e dà questo:
  
 <code> <code>
 +# Edit this file to introduce tasks to be run by cron.
 +#
 +# Each task to run has to be defined through a single line
 +# indicating with different fields when the task will be run
 +# and what command to run for the task
 +#
 +# To define the time you can provide concrete values for
 +# minute (m), hour (h), day of month (dom), month (mon),
 +# and day of week (dow) or use '*' in these fields (for 'any').#
 +# Notice that tasks will be started based on the cron's system
 +# daemon's notion of time and timezones.
 +#
 +# Output of the crontab jobs (including errors) is sent through
 +# email to the user the crontab file belongs to (unless redirected).
 +#
 +# For example, you can run a backup of all your user accounts
 +# at 5 a.m every week with:
 +# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
 +#
 +# For more information see the manual pages of crontab(5) and cron(8)
 +#
 +# m h  dom mon dow   command
 +
 */15 * * * * offlineimap -1 */15 * * * * offlineimap -1
  
Line 7: Line 37:
  
 */5 * * * * /usr/bin/getmail --rcfile biblioteca --rcfile francesco */5 * * * * /usr/bin/getmail --rcfile biblioteca --rcfile francesco
 +
 +# lancio virsh al reboot per via di un bug in qemu-kvm
 +@reboot /usr/bin/virsh net-start default
 +
 +# lancio dropbox al reboot
 +@reboot /usr/local/bin/dropbox.py start
 +
 +# lancio notmuch ogni ora per indicizzare le mie mail
 +@hourly /usr/bin/notmuch new
  
 # back up della directory dei diari # back up della directory dei diari
crontab.1348430660.txt.gz · Last modified: 2012/09/23 22:04 by admin