Date: Thu, 14 Jan 1999 16:12:42 -0500 (EST) From: Alan Bawden <Alan@LCS.MIT.EDU> To: sysop@calcasieu.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: messing with /etc/rc.conf Message-ID: <14Jan1999.120601.Alan@LCS.MIT.EDU> In-Reply-To: <9901140910.AA29065@oak.austin.calcasieu.com> (message from Don Read on Thu, 14 Jan 1999 03:10:35 -0600 (CST)) References: <9901140910.AA29065@oak.austin.calcasieu.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From: Don Read <sysop@calcasieu.com>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14Jan1999.120601.Alan>
