Ubuntu系统使用Shell脚本定时执行python脚本
1,写python脚本,命名为test.pyfor i in range(5): print('1234')2,写shell脚本,命名为myshell.sh#!/bin/bashsudo python test.py \recho "执行完毕"exit 02个脚本都放在/home/目录下3,添加到定时任务crontab -e如果是第一次创建定时任务,会出现这样的提示,选...
原创
2018-11-14 15:24:43 ·
6560 阅读 ·
5 评论