Re: too many mutts



-----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
running somewhere and I don't know it, so I do the mutt key command
and start a 2nd mutt, then sometimes a third.

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?

Thanks for any help.

I know some Python if it could be done in there. But I suspect I need
a bash script?

I didn't see a mutt option that would accomplish this.

Thank you for any help.

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.

- --
Ron Johnson, Jr.
Jefferson LA USA

PETA - People Eating Tasty Animals
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHp4XZS9HxQb37XmcRAmYiAKCYwtyEtXVEqQIdvnb2dFVvaAPuCQCeLMIV
K4OHiexEKJMOV9rmDHA0P3k=
=vyVz
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Error sending message. child exited 67 (user unknown)
    ... I have the same problem in my .bash script: ... You can't put the redirection symbol '<' within the quotes, ... so mutt is seeing < and whatever $2 ... If you really want to embed the < within the quotes, ...
    (comp.mail.mutt)
  • too many mutts
    ... I start it with a key command. ... When I get many x-sessions and programs running at once, often mutt is ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: too many mutts
    ... I start it with a key command. ... When I get many x-sessions and programs running at once, often mutt is ... keeps a sesion open, first time you have to start mutt, but yuo could add ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Send mail from script
    ... I want to send an e-mail from a bash script. ... On the machines here "mutt" is installed. ... sending mails without user interaction ...
    (comp.os.linux.misc)
  • Send mail from script
    ... I want to send an e-mail from a bash script. ... On the machines here "mutt" is installed. ... But although I specify all ...
    (comp.os.linux.misc)