【发布时间】:2020-08-04 02:13:16
【问题描述】:
我正在尝试使用 os.system() 从 Windows 10 上的 python 应用程序安排在 linux 服务器上运行的作业。以下代码执行但未能安排作业。
os.system('ssh myadmin@mnop.com "at 09:00 {}".format("iostat > /home/myadmin/t.txt")')
os.system('ssh myadmin@mnop.com "crontab 0 9 9 1 * /home/myadmin.msg.sh"')
我的目标是安排一次执行。感谢您的建议。
【问题讨论】:
标签: python linux cron at-utility