/stack-scripts

Helper scripts for a perfect web stack on CentOS

Primary LanguageShell

stack-scripts

cronify.sh

Runs a command in a cron-friendly way:

  • Hide output unless there is an error
  • Optionally logs to a file via -l option

Usage:

cronify.sh [-l /path/to/logfile] command [args...]