[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: A small how-to - request for comments



Thomas,

An alternative configuration for Fetchmail for those that prefer to
start it on a per user basis.

Add the following to the users .bashrc:
CONF_FILE="$HOME/.fetchmailrc"
PID_FILE="$HOME/.fetchmail.pid"
FETCHMAIL="/usr/bin/fetchmail"
TSOCKS="/usr/bin/tsocks"

function FetchMailAlive () {
if test -f $CONF_FILE && test -f $FETCHMAIL; then if test -f $PID_FILE; then if ! kill -0 `cut -d \ -f1 $PID_FILE` 2>/dev/null; then
eval $($TSOCKS $FETCHMAIL)
echo New FetchMail started. >&2
fi
else eval $($TSOCKS $FETCHMAIL)
echo New FetchMail started. >&2
fi
else
echo Fetchmail not installed or configured properly. >&2
fi
}

# Call it
FetchMailAlive

Then it checks for a running fetchmail daemon everytime a new shell
is openned and starts one if needed.

Thanks,

Dave V.


On 16:47 Aug.25.2004, Thomas Sj?gren said:
From: Thomas Sjögren <thomas@northernsecurity.net>
To: or-talk@freehaven.net
Date: Wed, 25 Aug 2004 16:47:49 +0200
User-Agent: Mutt/1.5.6+20040803i
Subject: A small how-to - request for comments

Hi,
I wrote up a small guide on how to use Tor with various software a
couple of days ago.
The document is available at
http://www.northernsecurity.net/articles/torify.html

Comments on typos, software missing from the guide etc etc are welcome.

/Thomas
--
== Encrypted e-mails preferred | GPG KeyID: 114AA85C
--

Attachment: signature.asc
Description: Digital signature