Timeline for Issue running python script from crontab?
Current License: CC BY-SA 4.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 28, 2020 at 21:44 | comment | added | Seamus |
Help yourself by having a look at any stderr output generated. Do this by redirecting stderr to stdout (2>&1), to a separate file; e.g. /usr/bin/python3 /home/projects/temperature_logger/analyze.py >> /home/myusernm/log.txt 2>&1
|
|
| Sep 28, 2020 at 18:53 | history | edited | bjk116 | CC BY-SA 4.0 |
added 442 characters in body
|
| Sep 28, 2020 at 18:14 | answer | added | Sandeep Kothari | timeline score: 0 | |
| Sep 28, 2020 at 16:30 | comment | added | bjk116 |
Let me ask a different way, since I'm going to be flashing ubuntu 20.04 to my raspberry pis memory card shortly anyways and then pulling /home/projects/temperature_logger from my git repo. Where would I want my project file? I made up the directory /projects/ under home to start working on coding, but I don't know what the convention is and if thats affecting permissions at all. And then, from who's cron would I want to be calling the analyze.py?
|
|
| Sep 28, 2020 at 16:23 | comment | added | Chris Davies | Does the script really require root (full system) privileges just to process a CSV file? | |
| Sep 28, 2020 at 16:22 | history | edited | bjk116 | CC BY-SA 4.0 |
added 632 characters in body
|
| Sep 28, 2020 at 15:50 | comment | added | Kusalananda♦ | What user's crontab are you using. If the script requires root permissions to run, then use root's crontab. | |
| Sep 28, 2020 at 15:49 | comment | added | Eduardo Trápani | From PuTTy you can select and that goes into the clipboard. Then you just use Paste (Ctrl-V). | |
| Sep 28, 2020 at 15:33 | history | asked | bjk116 | CC BY-SA 4.0 |