Re: too many mutts

2008-02-05 Thread Vincent Lefevre
On 2008-02-04 22:52:02 +, Steve Kemp wrote: > Close but not as good as you could do - your script essentially > says "If mutt is running exit". A better approach would be to > use GNU Screen to allow the user to re-attach to a running mutt: > >alias mutt='screen -D -R -S mutt mutt'

Re: too many mutts

2008-02-04 Thread Alex Samad
On Mon, Feb 04, 2008 at 12:36:15PM -0800, BartlebyScrivener wrote: > Hello, > > I am on Etch and using fluxbox mainly to manage windows. I use mutt > for email. I start it with a key command. > > When I get many x-sessions and programs running at once, often mutt is > running somewhere and I don'

Re: too many mutts

2008-02-04 Thread BartlebyScrivener
On Feb 4, 5:10 pm, "Steve Lamb" <[EMAIL PROTECTED]> wrote: > Maybe a change in work habits would be more appropriate? I got into the > habit ages ago of using multiple desktops and throwing specific tasks on > certain desktops. Great suggestion. I don't use desktops enough. Thanks for all o

Re: too many mutts

2008-02-04 Thread BartlebyScrivener
On Feb 4, 5:00 pm, Steve Kemp <[EMAIL PROTECTED]> wrote: > >alias mutt='screen -D -R -S mutt mutt' > > The only drawback is this will get fiddly if you're running > nested screen sessions... > Hey, Steve, this works great. Thanks. And I'm not smart enough to run a nested screen session, so

Re: too many mutts

2008-02-04 Thread Steve Lamb
BartlebyScrivener wrote: > Is there a script I could make that I could use to start mutt, and if > mutt were already running, then it could just take me to the already- > running instance of it, instead of starting a new mutt? > I know some Python if it could be done in there. But I suspect I need

Re: too many mutts

2008-02-04 Thread Steve Kemp
On Mon Feb 04, 2008 at 21:50:33 +, Patter wrote: > On Mon, 04 Feb 2008 22:00:19 +0100, BartlebyScrivener wrote: > > Is there a script I could make that I could use to start mutt, and if > > mutt were already running, then it could just take me to the already- > > running instance of it, instead

Re: too many mutts

2008-02-04 Thread BartlebyScrivener
On Feb 4, 3:50 pm, Ron Johnson <[EMAIL PROTECTED]> 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 ju

Re: too many mutts

2008-02-04 Thread Patter
On Mon, 04 Feb 2008 22:00:19 +0100, BartlebyScrivener wrote: > Is there a script I could make that I could use to start mutt, and if > mutt were already running, then it could just take me to the already- > running instance of it, instead of starting a new mutt? Hacked up from a little perlish I h

Re: too many mutts

2008-02-04 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/04/08 14:36, BartlebyScrivener wrote: > Hello, > > I am on Etch and using fluxbox mainly to manage windows. I use mutt > for email. I start it with a key command. > > When I get many x-sessions and programs running at once, often mutt is > runn

too many mutts

2008-02-04 Thread BartlebyScrivener
Hello, I am on Etch and using fluxbox mainly to manage windows. I use mutt for email. I start it with a key command. When I get many x-sessions and programs running at once, often mutt is running somewhere and I don't know it, so I do the mutt key command and start a 2nd mutt, then sometimes a th