* * * * * myjob.sh >> /var/log/myjob.log 2>&1
will log all output from the cron job to /var/log/myjob.log
You might use mail
to send emails. Most systems will send unhandled cron
job output by email to root or the corresponding user.
More Related Contents:
- Where is the Docker daemon log?
- When to use the different log levels
- Spring Boot: How can I set the logging level with application.properties?
- Create an MSI log file
- How to view the logging of Google Web App when other users are executing it?
- Best way to log POST data in Apache?
- Karate: Is there a way to disable log when using retry?
- Logging POST data from $request_body
- Managing log files created by cron jobs
- How to do logging in React Native
- log4j logging hierarchy order
- Location of GlassFish Server Logs
- When using wrapper, how to preserve class and method name for Log4Net to log?
- Save Screen (program) output to a file
- How to log using log4j to local file system inside a Spark application that runs on YARN?
- Traditional logging vs AOP logging
- DCH class error with JavaMail
- How do I get logs from all pods of a Kubernetes replication controller?
- How to fix JSP compiler warning: one JAR was scanned for TLDs yet contained no TLDs?
- Microsoft.Extensions.Logging Vs. NLog
- How to specify common application data folder for log4net?
- How can I log SQL statements in Spring Boot?
- Logging not showing
- I need a Nodejs scheduler that allows for tasks at different intervals [closed]
- How can I programmatically create a new cron job?
- Can I extend the console object (for rerouting the logging) in javascript?
- Where is the “server log” for Tomcat when running externally from IntelliJ Ultimate?
- How can I set cron job through PHP script
- Lazy logger message string evaluation
- How to log Keras loss output to a file