I have a Python script which outputs to standard out, and the scripts resides in /usr/local/bin
so I run the following command to redirect the output: ./myscript >> /home/user/output.csv
.
However I need to run the script as a Cron job every minute (whether I am logged in or not) and I am unsure of the Cron syntax to redirect to "output.csv" which is in my home directory.
This is what I've come up with but I am fairly sure that redirecting from Cron won't be that simple:
0 0/1 * 1/1 * ? * /usr/local/bin/myscript >> /home/user/output.csv
How do I do it correctly?