Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想每天运行一个python程序。我想出了如何在特定时间做。
sudo echo "python ./test.py" | at 6:00
但是我不知道如何每天运行这个脚本。
我试过这个:
sudo echo "python ./test.py" | at 6:00 everyday
然后它没有警告我任何东西,它运行了一次,但是当我atq后来检查时,那里什么都没有。所以这意味着它不会每天运行。
atq
如何每天运行 python 脚本?(我正在使用 mac os x。)
谢谢你。
使用 cron 运行您的脚本。
大多数人都在mac上使用cronix进行cron作业,我相信......
你可以在这里得到它: https ://code.google.com/p/cronnix/