Ticket #333 (assigned enhancement)

Opened 10 years ago

Last modified 10 years ago

Cron scripts too chatty, need "--quiet" option.

Reported by: steveg@… Owned by: rjl
Priority: normal Milestone: 1.1.0
Component: PHP scripts Version: 1.0.1
Severity: minor Keywords: scripts quiet options


Some of the cron scripts output messages even though no errors have occured. For example, stats-snapshot.pl prints "Updating stats history table.", which gets mailed to me every hour. The usual trick of adding "> /dev/null" to the cron entry won't work, because then I won't see errors either: errors are printed to stdout, rather than stderr.

Suggested solution: add a "quiet" option to the scripts, so that they only output errors. Additionally, errors go to stderr, messages to stdout.


Change History

Changed 10 years ago by rjl

Note that several of the scripts already offer a --quiet option, including process-quarantine, expire-quarantine-cache, and load-sa-rules.

Effectively this enhancement ticket applies to send-quarantine-reminders, send-quarantine-digests, and stats-snapshot.

Changed 10 years ago by rjl

  • keywords scripts quiet options added
  • status changed from new to assigned
  • component changed from General to PHP scripts
  • severity changed from normal to minor
  • milestone set to 1.0.2

Changed 9 years ago by dmorton

  • milestone changed from 1.0.2 to 1.1.0
Note: See TracTickets for help on using tickets.