the/eXtreme <[EMAIL PROTECTED]> wrote on Wed, 11 Oct 2000:
> I could use a shell script to `ps' for existing
> mutt sessions before launching another session;
> or is there a better way?
How about a shell script that looks (vaguely) like this:
#!/bin/sh
LOCKFILE=~/.mutt.lock
if [ -f $LOCKFILE ]; then
echo "Another Mutt session is already running ($LOCKFILE exists)"
exit 1
else
touch $LOCKFILE
mutt $*
rm $LOCKFILE
fi
... That's untested, I just typed it in, but hopefully it will work.
At the very least, with minor tweaking.
Hope this helps,
Mikko
--
// Mikko Hänninen, aka. Wizzu // [EMAIL PROTECTED] // http://www.iki.fi/wiz/
// The Corrs list maintainer // net.freak // DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
Meep!