Hint: App::Every - Makes a cron entry with 2x simple parameters.
-
Alias:
alias cron-every='curl -sk 'https://raw.githubusercontent.com/iarna/App-Every/master/packed/every' | perl -X - -n -l'
-
Example:
% cron-every 3 hours ls
PATH=/home/foilo/cappucino/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin LOCKFILE=/tmp/every_lock_b8d65f1a8f00500bbda75fc44a4d5f88 SHELL=/bin/zsh 54 */3 * * * [ ! -f $LOCKFILE -o ! -d /proc/`[ -f $LOCKFILE ] && cat $LOCKFILE` ] && ( echo $$ > $LOCKFILE ; cd "/home/foilo"; ls ; rm $LOCKFILE )