I have added the following line in contab
1 * * * * /usr/bin/python /home/prkumar/Desktop/python/sample.py
my sample.py file
text_file = open("sample.log", "a")
text_file.write("Hi...")
text_file.write("\n")
text_file.close()
If I run the python program in terminal it's working fine and also append the text in sample.log file. But there is no response if add the program in crontab.
Thanks