Date: Thu, 14 Jan 1999 03:10:35 -0600 (CST) From: Don Read <sysop@calcasieu.com> To: Alan@lcs.mit.edu (Alan Bawden) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: messing with /etc/rc.conf Message-ID: <9901140910.AA29065@oak.austin.calcasieu.com> In-Reply-To: <14Jan1999.003932.Alan@LCS.MIT.EDU> from "Alan Bawden" at Jan 14, 99 01:02:50 am
next in thread | previous in thread | raw e-mail | index | archive | help
>
<snip>
> OK, so I've now established that the first guy to try answering my question
> didn't actually know that something other than `sh' occasionally reads and
> re-writes the contents of /etc/rc.conf.
>
'tude--;
<snip>
>
> To review: I recently noticed that 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`
(works from cmd line, YMMV).
>
> Somebody?
>
who ? me ?
Regards,
--
Don Read sysop@calcasieu.com
EDP Manager dread@texas.net
Calcasieu Lumber Co. Austin TX
-- Will sysadmin for food
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?9901140910.AA29065>
