crontab 五秒执行一次脚本

[root@web docserverbackup]# crontab -l
*/50 * * * * /usr/sbin/ntpdate us.pool.ntp.org
*  * * * *  /data/xc/samba.sh
*  * * * * root sleep 5; /bin/bash /data/xc/samba.sh
*  * * * * root sleep 10;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 15;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 20;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 25;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 30;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 35;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 40;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 45;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 50;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 55;/bin/bash  /data/xc/samba.sh
*  * * * * root sleep 59;/bin/bash  /data/xc/samba.sh

你可能感兴趣的:(Linux)