From owner-freebsd-questions Thu Jan 14 13:14:02 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09402 for freebsd-questions-outgoing; Thu, 14 Jan 1999 13:14:02 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from oolong.camellia.org (oolong.camellia.org [206.119.96.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09265 for ; Thu, 14 Jan 1999 13:13:57 -0800 (PST) (envelope-from alan@oolong.camellia.org) Received: (from alan@localhost) by oolong.camellia.org (8.8.8/8.8.8+Erasmus) id QAA08371; Thu, 14 Jan 1999 16:12:42 -0500 (EST) (envelope-from alan) Date: Thu, 14 Jan 1999 16:12:42 -0500 (EST) References: <9901140910.AA29065@oak.austin.calcasieu.com> Message-Id: <14Jan1999.120601.Alan@LCS.MIT.EDU> From: Alan Bawden To: sysop@calcasieu.com CC: freebsd-questions@FreeBSD.ORG In-reply-to: <9901140910.AA29065@oak.austin.calcasieu.com> (message from Don Read on Thu, 14 Jan 1999 03:10:35 -0600 (CST)) Subject: Re: messing with /etc/rc.conf Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From: Don Read Date: Thu, 14 Jan 1999 03:10:35 -0600 (CST) > ...the line in my rc.conf file that used to > read: > > ntpdate_flags="-bs $(/usr/bin/awk '$1 == "server" || $1 == "peer" {print $2}' /etc/ntp.conf)" > > had been altered to read: > > ntpdate_flags="-bs $(/usr/bin/awk '$1 == " > The problem is the use of mixed quote-ing [" '] attempting to run a process instead of the expected constant " ". try instead: ntpdate_flags=`echo \-bs;awk '/^server|^peer/{ print $2 }' /etc/ntp.conf` Nope. The code in /stand/sysinstall that updates rc.conf files -- which I just went and read -- will rewrite this to be: ntpdate_flags="/^server|^peer/{ print $2 }" At least that's what I think it will do, I didn't actually run it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message