I'm running a cron script with the following entry in crontab -e:
* * * * * /scripts/test.sh > /tmp/test.log
/scripts/test.sh:
#!/bin/sh
echo "test"
But for some reason it produces an error in the log:
root@OpenWrt:~# logread
...
May 5 07:54:01 OpenWrt cron.err crond[1260]: USER root pid 6872 cmd /scripts/test.sh > /tmp/test.log
The code has been run though:
root@OpenWrt:~# cat /tmp/test.log
test
Should I end the script in any special way to prevent it from producing an error, or what is wrong?
(Last edited by erikbjork on 5 May 2010, 07:22)