From owner-freebsd-questions@FreeBSD.ORG Mon Mar 8 09:58:39 2004 Return-Path: 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 C4B2116A4CE for ; Mon, 8 Mar 2004 09:58:39 -0800 (PST) Received: from dyer.circlesquared.com (host217-45-219-83.in-addr.btopenworld.com [217.45.219.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBE5D43D49 for ; Mon, 8 Mar 2004 09:58:38 -0800 (PST) (envelope-from peter@circlesquared.com) Received: from circlesquared.com (localhost.petanna.net [127.0.0.1]) i28I1P1J071783; Mon, 8 Mar 2004 18:01:35 GMT (envelope-from peter@circlesquared.com) Message-ID: <404CB4F5.1030009@circlesquared.com> Date: Mon, 08 Mar 2004 18:01:25 +0000 From: Peter Risdon User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5b) Gecko/20031102 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Golovniov References: <200403081801.i28I1pbS070211@gw.core> In-Reply-To: <200403081801.i28I1pbS070211@gw.core> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Handling mail on a dialup connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Mar 2004 17:58:39 -0000 Robert Golovniov wrote: >Hello, > > I would like to create an hourly cron to have the machine bring up > the dialup connection, check for the new mail (with fetchmail), send > any outgoing messages (with postfix) and then bring the connection > down. > > To make things more complicated, I would like to use this dialup > session to automatically update my virus databases for clamav, > f-prot, and Panda AV. > > I think I could figure out how to set each of these processes in > cron, but I am not sure how to tell the script that it should wait > for one process to finish before it starts performing the second > task. What is the best place to look for more information on that? > > > I'd write a shell script that did everything, then invoke that script with cron. PWR.