Forums

Issues with scheduled script

I have a python script - automation.py - that creates a csv from an API report. It works fine when I call the file from the console (python automation.py). However, when I try scheduling the file itself or a bash file that calls it, I don't get the csv output, despite stating that it runs fine.

Also, when I run the bash file from a terminal, it works as well and generates the csv.

Any thoughts here?

If you go to "View Logs" does it have an error?

Also, the csv file you're generating - have you used a fully qualified path/filename (i.e. '/home/xxx/xxx/xxx.csv')? Because it might be saving the file somewhere you don't expect

No error, wow, that was so simple! Thank you so much for that. Totally forgot to put the full path in.

We've all made that mistake :-)