Skip to content

Instantly share code, notes, and snippets.

@neoadventist
neoadventist / cron_helper.sh
Created December 13, 2015 13:18 — forked from liquidgecka/cron_helper.sh
Cron helper
#!/bin/bash
usage() {
cat << EOF
Usage: $0 [OPTION]... COMMAND
Execute the given command in a way that works safely with cron. This should
typically be used inside of a cron job definition like so:
* * * * * $(which "$0") [OPTION]... COMMAND
Arguments: