Hands-on task
Cron output to a log, appending
Add a job to the root crontab that runs /usr/local/bin/collect.sh every minute, sending its output (stdout and stderr) to the log /var/log/collect.log in append mode, so earlier entries are not overwritten. The cron daemon is already running — after the edit, wait for the first run.
- cron
- every-minute run
- appending >>
- 2>&1
- logging