contabに次の行を追加しました
1 * * * * /usr/bin/python /home/prkumar/Desktop/python/sample.py
私のsample.pyファイル
text_file = open("sample.log", "a")
text_file.write("Hi...")
text_file.write("\n")
text_file.close()
ターミナルで python プログラムを実行すると、正常に動作し、sample.log ファイルにテキストも追加されます。しかし、crontab にプログラムを追加しても応答がありません。
ありがとう