Re: too many mutts
On Feb 4, 3:50 pm, Ron Johnson <ron.l.john...@cox.net> wrote:
> I think I'd write a bash script to grep thru ps(1) and refuse to
> start a new instance if a mutt instance is already running.
>
Ok, I have that part. But is there a way to bring the already running
mutt process to the fore instead of just saying, "Mutt is already
running"?
Thanks
----------------
#!/bin/bash
SERVICE='Mutt'
if ps ax | grep -i $SERVICE > /dev/null
then
echo "$SERVICE is already running!!!"
else
gnome-terminal --window-with-profile=muttprofile --geometry=80x47 -
x mutt
fi
Reply to: