Skip to content

Instantly share code, notes, and snippets.

@facundobianco
Created May 8, 2015 20:04
Show Gist options
  • Save facundobianco/b9945bccfc659b7cdff0 to your computer and use it in GitHub Desktop.
Save facundobianco/b9945bccfc659b7cdff0 to your computer and use it in GitHub Desktop.
#!/bin/bash
MAILDIR=/home/vando/.getmail
MAILNAM="account0 account1 account2"
GETMAIL=`whereis getmail`
if [ -z "`pgrep -f ${GETMAIL}`" ]
then
for NAM in ${MAILNAM}
do
${GETMAIL} -qr ${MAILDIR}/getmailrc.${NAM} 2> /tmp/getmail-err.log
done
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment