[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: too many mutts

On Mon Feb 04, 2008 at 21:50:33 +0000, 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 of starting a new mutt?
> Hacked up from a little perlish I had hanging around

  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'

   This means create a secreen session with name mutt (-S) running
  wth command mutt - if one is already running with that name detach
  it first.

  The only drawback is this will get fiddly if you're running
 nested screen sessions...

Debian GNU/Linux System Administration

Reply to: