Advertisement
Guest User

Untitled

a guest
Jul 7th, 2017
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. # /etc/crontab: system-wide crontab
  2. # Unlike any other crontab you don't have to run the `crontab'
  3. # command to install the new version when you edit this file
  4. # and files in /etc/cron.d. These files also have username fields,
  5. # that none of the other crontabs do.
  6.  
  7. SHELL=/bin/sh
  8. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  9.  
  10. # m h dom mon dow user command
  11. 17 * * * * root cd / && run-parts --report /etc/cron.hourly
  12. 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
  13. 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
  14. 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
  15. #
  16.  
  17. ## /etc/cron.hourly/time.cron isn't working, so put it here 2010-10-21
  18.  
  19. 30 * * * * root /etc/cron.hourly/time.cron
  20.  
  21. ## added following 2010-10-19 from the old /etc/crontab
  22. ### added email address to dpkg --list entry to test mail
  23. 40 1 * * * root ( /bin/df -Th|mail -s "[$(hostname)] df -Th done on $(date) for [$(hostname)]" email@emailprovider -c mike )
  24. 50 1 * * * root ( /opt/scc/bin/scc -e "*" )
  25. 10 2 * * * root ( dpkg --list | grep "^ii" | cut -f3 -d ' ' | sed ':a;N;$!ba;s/\n/ /g' |mail -s "[$(hostname)] dpkg --list done on $(date) for [$(hostname)]" email@emailprovider )
  26. 20 2 * * * root ( mail < /etc/apt/sources.list -s "[$(hostname)] /etc/apt/sources.list done on $(date) [$(hostname)]" email@emailprovider )
  27. 25 2 * * * root ( mail < /etc/crontab -s "[$(hostname)] /etc/crontab done on $(date) [$(hostname)]" email@emailprovider )
  28. 29 2 * * * root ( mail < /var/opt/scc/data/scc.daylily.html -s "[$(hostname)] /var/opt/scc/data/scc.daylily.html done on $(date) [$(hostname)]" mike.fieschko@gmail.com -c mikeemail@emailprovider )
  29. 26 2 * * * root ( mail < /home/mike/.bashrc -s "[$(hostname)] mike's ~/.bashrc done on $(date) [$(hostname)]" mike.fieschko@gmail.com -c mikeemail@emailprovider )
  30. 27 2 * * * root ( mail < /home/mike/.bash_profile -s "[$(hostname)] mike's ~/.bash_profile done on $(date) [$(hostname)]" mike.fieschko@gmail.com -c mikeemail@emailprovider )
  31. 30 2 * * * root ( mail < /etc/fstab -s "[$(hostname)] /etc/fstab done on $(date) for [$(hostname)]" mike.fieschko@gmail.com -c mikeemail@emailprovider )
  32. 31 2 * * * root ( mail < /etc/passwd -s "[$(hostname)] /etc/passwd done on $(date) for [$(hostname)]" mike.fieschko@gmail.com -c mike )
  33. 32 2 * * * root ( mail < /etc/shadow -s "[$(hostname)] /etc/shadow done on $(date) for [$(hostname)]" mike.fieschko@gmail.com -c mikeemail@emailprovider )
  34. 33 2 * * * root ( mail < /etc/group -s "[$(hostname)] /etc/group done on $(date) for [$(hostname)]" mike.fieschko@gmail.com -c mike email@emailprovider )
  35. 34 2 * * * root ( mail < /etc/hosts -s "[$(hostname)] /etc/hosts done on $(date) for [$(hostname)]" mike.fieschko@gmail.com -c mikeemail@emailprovider )
  36. #35 2 * * * root ( mail < /boot/grub/menu.lst -s "[$(hostname)] /boot/grub/menu.lst done on $(date) for [$(hostname)]" mike.fieschko@gmail.com -c mikeemail@emailprovider )
  37. 37 2 * * * root ( mail < /boot/grub/grub.cfg -s "[$(hostname)] /boot/grub/grub.cfg done on $(date) for [$(hostname)]" email@emailprovider )
  38. 25 1 * * * root ( mail < /home/mike/.fvwm2rc -s "[$(hostname)] mike's .fvwm2rc done on $(date) for [$(hostname)]" email@emailprovider )
  39. 35 1 * * * root ( mail < /home/mike/.xinitrc -s "[$(hostname)] mike's .xinitrc done on $(date) for [$(hostname)]" email@emailprovider )
  40. 40 2 * * * root ( fdisk -l|mail -s "[$(hostname)] fdisk -l done on $(date) for [$(hostname)]" email@emailprovider )
  41. 10 3 * * * root /root/bin/run.applist.update
  42. 40 3 * * * root ( dpkg --get-selections|mail -s "[$(hostname)] get-selections run done on $(date) for [$(hostname)]" email@emailprovider )
  43. 10 4 * * * root /root/bin/run.aptitude.cron
  44. 15 4 * * * root /root/bin/run.aptitude.all.cron
  45. #15 5 * * * root ( /usr/bin/aptitude search '?installed?not(?automatic)' -F %p|mail -s "[$HOSTNAME] aptitude search run for [$HOSTNAME]" email@emailprovider )
  46. 40 4 * * * root ( mail < /root/daily.saved.aptitude.seach -s "[$(hostname)] daily.saved.aptitude.seach done on $(date) for [$(hostname)]" email@emailprovider )
  47. 42 4 * * * root ( mail < /root/daily.saved.aptitude.all.seach -s "[$(hostname)] daily.saved.aptitude.all.seach done on $(date) for [$(hostname)]" email@emailprovider )
  48. #
  49. 43 4 * * * root ( mail < /home/mike/.config/gpodder/channels.opml -s "[$(hostname)] mike's gpodder subscription list done on $(date) for [$(hostname)]" email@emailprovider )
  50. #
  51. 48 4 * * * root ( mail < /home/mike/.liferea_1.4/feedlist.opml -s "[$(hostname)] mike's liferea 1.4 feedlist.opml done on $(date) for [$(hostname)]" email@emailprovider )
  52. 58 4 * * * root ( mail < /home/mike/.liferea_1.6/feedlist.opml -s "[$(hostname)] mike's liferea 1.6 feedlist.opml done on $(date) for [$(hostname)]" email@emailprovider )
  53. 28 5 * * * root ( mail < /home/mike/.xchat2/servlist_.conf -s "[$(hostname)] mike's xchat server list file done on $(date) for [$(hostname)]" email@emailprovider )
  54. 38 5 * * * root ( mail < /home/mike/.kde/share/apps/korganizer/std.ics -s "[$(hostname)] mike's korganizer file done on $(date) for [$(hostname)]" email@emailprovider )
  55. 58 5 * * * root ( mail < /home/mike/.kde/share/apps/korganizer/std.bad.ics -s "[$(hostname)] mike's korganizer bad.file done on $(date) for [$(hostname)]" email@emailprovider )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement