shell写入crontab数据

需要在程序中添加crontab,执行shell命令来实现:

(echo "* * * * * sh /root/proxy/pull_server.sh >> /dev/null 2>&1" ; crontab -l ) | crontab

 

おすすめ

転載: blog.csdn.net/xiadeliang1111/article/details/112305929