I have applied the solution to my question:
but it has not resolved.
I wish to save the file at the following location :
/home/user/Documents/Python/output.csv
Path of the script:
/home/user/Documents/Python/script.py
my cronjob
* * * * * * /usr/bin/python3 /home/user/Documents/Python/script.py
It saves the data in a new file created on the following location if I give relative path:
/home/user/output.csv
and I do not want to give absolute path for the output file.
0 Answers