From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 08:35:50 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 D71E716A40F for ; Tue, 16 Jan 2007 08:35:50 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 364CC13C461 for ; Tue, 16 Jan 2007 08:35:50 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 16 Jan 2007 08:35:48 -0000 Received: from vpn-cl-166-50.rz.uni-karlsruhe.de (EHLO [141.3.166.50]) [141.3.166.50] by mail.gmx.net (mp004) with SMTP; 16 Jan 2007 09:35:48 +0100 X-Authenticated: #5465401 Message-ID: <45AC8EA4.4010806@gmx.de> Date: Tue, 16 Jan 2007 09:36:52 +0100 From: "[LoN]Kamikaze" Organization: Lords of Nightmare User-Agent: Thunderbird 1.5.0.9 (X11/20061222) MIME-Version: 1.0 To: linux quest , freebsd-questions@freebsd.org References: <218971.7584.qm@web59210.mail.re1.yahoo.com> In-Reply-To: <218971.7584.qm@web59210.mail.re1.yahoo.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: 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:35:50 -0000 linux quest wrote: > Since, I desperately needed to connect to the Internet at this point of > time, I create a file called resolv.conf in /root ... I am thinking how > can I create a script so that it can copy resolv.conf from /root to > /etc/resolv.conf every 30 minutes at start up - This is because I don't > wanna manually type in "cp /root/resolv.conf /etc/resolv.conf" every 30 > minutes. http://www.freebsd.org/cgi/query-pr.cgi?pr=106902 The suggested script allows you to set your nameservers in rc.conf. I seriously doubt you need to do that every 30 minutes. It should be enought to write it on startup, so give it a try.