I am using echo statements in a shell script. The shell script will be run by a cronjob.Will the output of those echo statements get automatically logged somewhere ?. If yes,where ?
Thank You
I am using echo statements in a shell script. The shell script will be run by a cronjob.Will the output of those echo statements get automatically logged somewhere ?. If yes,where ?
Thank You
Usually crond will email output to the user. You are better off doing this (example crontab entry)
* * * * * /path/to/my/script.sh 2&>1 > /tmp/mylogfile.log