]>
git.rmz.io Git - dotfiles.git/blob - bin/offlineimap.cron
2 # http://pbrisbin.com/posts/mutt_gmail_offlineimap/
7 while ps
$pid &>/dev
/null
; do
9 echo "Max checks reached. Sending SIGKILL to ${pid}..." >&2
10 kill -9 $pid; return 1
19 read -r pid
< ~
/.offlineimap
/pid
21 if ps
$pid &>/dev
/null
; then
22 echo "Process $pid already running. Exiting..." >&2
26 offlineimap
-o & monitor $
!