需要在程序中添加crontab,执行shell命令来实现:
(echo "* * * * * sh /root/proxy/pull_server.sh >> /dev/null 2>&1" ; crontab -l ) | crontab