Re: [dwm] mail notification again

From: Martin Sander <forke_AT_uni-bonn.de>
Date: Thu, 10 Jan 2008 14:41:10 +0100

On Thu, Jan 10, 2008 at 02:12:30PM +0100, Peter Vollmar wrote:
> I don't have cron, so I'm interested in a separate loop (or distinct loop
> iterations), but I don't know how to do it :-)

You don't have cron? What kind of system are you running?

You can just write a short script called e.g. mailchecker.sh that does
your mailchecking in a loop containing e.g. a "sleep 300".
Start this script in the background in your .xinitrc:

~/bin/mailchecker.sh &
MAILCHECKPID=$!

# run dwm as before here

# make sure the script is killed when dwm exits
kill $MAILCHECKPID

Regards

Martin
Received on Thu Jan 10 2008 - 14:41:12 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:15:28 UTC