[imapfilter-devel] error: another imapfilter is running with pid 7848
jan
j-a-n at gmx.de
Thu Nov 20 14:51:08 EET 2003
ok.. i have a solution; maybe someone is interested in....
von Lefteris Chatzibarbas am 17.11.2003 21:52:
>On Mon, Nov 17, 2003 at 10:40:45AM +0100, jan wrote:
>
>
>>can i redirect the stdout to /dev/null?
>>
>>
>You should redirect stderr to /dev/null.
>
>
>
it works, but the programm is still exiting with error code 4, so the
mail is still sent.
>>and whats about checking previously whether imapfilter is running? is it
>>possible to get the information anywhere?
>>
>>
>Yes. The $HOME/.imapfilter/lock file contains the PID of the imapfilter
>instance that is currently running.
>
>
ok.. thats my solution. i wrote a script, which tests the existance of
this file and waits until it disappears.
here you are:
timeout=20 # timeout in seconds
i=0 # counter for timeout
while [ -e ~/.imapfilter/lock ] do
echo -n "." # print dots while waiting
let i=i+1 # count timeout
sleep 1s # wait
if [ $i -gt $timeout ] then # test timeout; then exit
exit 0
fi
done
~/bin/imapfilter-0.9.4/imapfilter -c ~/.imapfilter/imapfilter_rc
and thats my .forward (where "jan" is my account-name)
\jan
"|/home/jan/bin/imapfilter.sh"
regards
jan
More information about the Imapfilter-devel
mailing list