编辑定时任务1
crontab -e
其他命令
编辑定时任务2
vim /etc/crontab
定时任务示例
*/1 * * * * /root/python.sh
*/1 * * * * sleep 15; /root/python.sh
*/1 * * * * sleep 30; /root/python.sh
*/1 * * * * sleep 45; /root/python.sh
启动定时任务
service crond restart
追加文字到队尾
echo "this is a new line" >> file.txt