Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5811

Troubleshooting • Re: Root crontab works but user (pi) does not

$
0
0
Check the ownership and permissions of the log files. Running from root will probably create them with owner root and then your user cron won't have permissions to write to them.
User crontab -e
*/1 * * * * /home/pi/dlog2.sh >> /home/pi/dlog2.log 2>> /home/pi/cron_error.log
If you want that to run every minute you don't need the "/1", just "*". I don't think that will stop it running, but is worth doing.

Statistics: Posted by rpdom — Mon Jun 10, 2024 10:40 am



Viewing all articles
Browse latest Browse all 5811

Trending Articles