unix - echo statements in a shell script run by cron -
this question has answer here:
- cron job log - how log? 6 answers
i using echo statements in shell script. shell script run cronjob.will output of echo statements automatically logged somewhere ?. if yes,where ?
thank you
usually crond email output user. better off doing (example crontab entry)
* * * * * /path/to/my/script.sh 2&>1 > /tmp/mylogfile.log
Comments
Post a Comment