Script run by Cron is not writing to file.
by kthibault17 from LinuxQuestions.org on (#5P20G)
Hello all,
I have a python script that opens a file and writes output to that file from the Raspberry Pi Sense Hat. When I run this script from the terminal it logs its data to the file. When this script is run from a Cron job, the output file gets created but no data is written. Any thoughts would be greatly appreciated.
Thanks!
I have a python script that opens a file and writes output to that file from the Raspberry Pi Sense Hat. When I run this script from the terminal it logs its data to the file. When this script is run from a Cron job, the output file gets created but no data is written. Any thoughts would be greatly appreciated.
Thanks!