Crontab 定时执行程序(爬虫)

Crontab定时执行 设置一个可执行脚本: test.sh #名字随便起 #!/bin/sh cd `dirname $0` || exit 1 /usr/bin/python3.5 hello.py >> run.log 2>&1 # 执行命令 执行文件 程序错误日志 在crontab 中设置执行脚本的时间、路径: # 编辑脚本: crontab -e * * * * * /home/zdw/
相关文章
相关标签/搜索