dbiesecke
10/18/2014 - 2:05 PM

Startup / Persistence

Startup / Persistence

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 )