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.
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.User crontab -e
*/1 * * * * /home/pi/dlog2.sh >> /home/pi/dlog2.log 2>> /home/pi/cron_error.log
Statistics: Posted by rpdom — Mon Jun 10, 2024 10:40 am