Created
May 8, 2015 20:04
-
-
Save facundobianco/b9945bccfc659b7cdff0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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