From owner-freebsd-questions Thu Sep 26 3: 3:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DC6337B401 for ; Thu, 26 Sep 2002 03:03:34 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 203B743E6E for ; Thu, 26 Sep 2002 03:03:33 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 13398 invoked from network); 26 Sep 2002 10:03:30 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 26 Sep 2002 10:03:30 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id DAF282FDAB2; Thu, 26 Sep 2002 12:01:49 +0200 (CEST) Date: Thu, 26 Sep 2002 12:01:49 +0200 From: Roman Neuhauser To: Bernd Haug Cc: Bryan Cassidy , freebsd-questions@FreeBSD.ORG Subject: Re: Fetchmail and Mutt Message-ID: <20020926100149.GZ30361@freepuppy.bellavista.cz> Mail-Followup-To: Bernd Haug , Bryan Cassidy , freebsd-questions@FreeBSD.ORG References: <20020925184817.A33990@insightbb.com> <3D92B33B.7000306@berndhaug.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D92B33B.7000306@berndhaug.net> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG # mailinglisten@berndhaug.net / 2002-09-26 09:11:55 +0200: > Bryan Cassidy wrote: > >I am using FreeBSD 4.6.2 on my system now. I am new to Unix/Linux > >but liking bsd alot. Anyways. I use fetchmail 5.9.13 and mutt > >1.2.5.1i and I am using Fluxbox as my window manager. I want to > >know what can I add to my .fluxbox/menu config file to launch > >fetchmail right before it launches mutt or vice versa so I don't > >have to run fetchmail by hand each and everytime viewing my e-mails. > >This is what I have in my .fluxbox/menu configuration file now to > >launch mutt [exec] (Mutt) {Eterm -e mutt} Hope I gave enough > >information. > > Would it be possible to write a one-code-liner akin to: > > #!/bin/sh > fetchmail && "eterm -e mutt" || "eterm -e mutt" > > so that first fetchmail is called, and then, no matter how it dies, > mutt is called? just replace the logical and (&&) with a semicolon. #!/bin/sh fetchmail ; Eterm -e mutt > The most elegant solution would probably be fetchmail daemon mode, but > if you're on a non-flatrate dial-up, you might not want regular polling. start fetchmail in the link-up script, kill it in the link-down script. -- begin 666 nonexistent.vbs FreeBSD 4.7-RC 11:59AM up 8 days, 19:13, 21 users, load averages: 0.08, 0.08, 0.03 end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message