Reputation: 1
I have created script that runs a command that uses printf to print to the stdout. I have set the script up on a crontab to run every minute. Everything works fine, except that the output is sent to mail every time. Is there a way to just have the output pop up on the stdout every minute?
I have tried some redirecting to &1 in the shell script, but that has not worked.
* * * * * cd ~/Desktop/tools && ./remind.sh
As I said, the output is mailed to me, and does not simply show up in stdout every minute.
Upvotes: 0
Views: 604
Reputation: 139
You can redirect output to syslog with logger:
* * * * * cd ~/Desktop/tools && ./remind.sh 2>&1 | logger
Upvotes: 2