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.
毎分crontabを実行するための非常に基本的なpythonスクリプトがあります。
スクリプト
filed = open('test.txt','a')
クロンタブ
* * * * * /to path the file/job.py
うまくいくはずですが、結果を見ることができませんでした。では、何が問題なのでしょうか?
text.txt絶対パスを使用して開く必要があります。クロデーモンは、予想とは異なるパスを使用している可能性があります。
text.txt
filed = open('/home/john/Desktop/test.txt','a')