1 2 | HOME=/home/joe PATH=$HOME/bin:/usr/bin:/bin |
1 2 | HOME=/home/joe PATH=/home/joe/bin:/usr/bin:/bin |
1 | @daily $HOME/bin/cleanup_daily.sh |
1 2 | SHELL=/bin/zsh @daily uptime > daily >> weekly |
1 2 | joe zelda |
1 2 3 4 5 | % whoami strike % crontab ~/.crontab You (strike) are not allowed to use this program (crontab) See crontab(1) for more information |
1 | @daily joe mysqldump -pjoespwd accounts > $HOME/backups/accounts.`date +%F`.sql |
1 | 0 0,12 * * * root updatedb |
1 | @midnight www rsync -avz /var/www/site slave1:/var/www |
1 | @weekly root df --print-type --local -h |& mail -s "Weekly df report" andy bob |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |