From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 08:01:04 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E2F7B16A40F for ; Tue, 16 Jan 2007 08:01:04 +0000 (UTC) (envelope-from chandler@chapman.edu) Received: from calais.chapman.edu (calais.chapman.edu [192.77.116.205]) by mx1.freebsd.org (Postfix) with ESMTP id 490BF13C428 for ; Tue, 16 Jan 2007 08:01:01 +0000 (UTC) (envelope-from chandler@chapman.edu) Received: from [206.211.142.181] (ist181.chapman.edu [206.211.142.181]) by calais.chapman.edu (Postfix) with ESMTP id 5C7092EA81 for ; Tue, 16 Jan 2007 00:00:59 -0800 (PST) Message-ID: <45AC863B.3090508@chapman.edu> Date: Tue, 16 Jan 2007 00:00:59 -0800 From: Jay Chandler User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: FreeBSD Questions References: <218971.7584.qm@web59210.mail.re1.yahoo.com> <6f4f57f60701152357v59daf746xb62f66c8bf31ac51@mail.gmail.com> In-Reply-To: <6f4f57f60701152357v59daf746xb62f66c8bf31ac51@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Chapman-MailScanner-Information: Please contact the ISP for more information X-Chapman-MailScanner: Found to be clean X-Chapman-MailScanner-From: chandler@chapman.edu X-Spam-Status: No Subject: Re: How about a Start-Up Script that execute every 30 minutes for resolv.conf??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 08:01:05 -0000 George Vanev wrote: > If you really want to copy resolv.conf from /root to /etc every 30 min > you don't need a startup script. Just add the following line in > /etc/crontab: > */30 * * * * root cp /root/resolv.conf > /etc/resolv.conf > > I don't know what exactly are you trying to do, but this is not > quite a good decision. > > Agreed-- it's a bad idea. However, if you still want to do it, throw a -f flag after the cp just to make sure it forcibly overwrites the resolv.conf. -- Jay Chandler Network Administrator, Chapman University 714.628.7249 / chandler@chapman.edu Today's Excuse: Atilla the Hub