From owner-freebsd-questions@FreeBSD.ORG Sat Nov 7 15:41:18 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 973EB1065670 for ; Sat, 7 Nov 2009 15:41:18 +0000 (UTC) (envelope-from frank@shute.org.uk) Received: from atmail-9.bnguk.net (atmail-9.bnguk.net [80.74.253.9]) by mx1.freebsd.org (Postfix) with ESMTP id 552AE8FC12 for ; Sat, 7 Nov 2009 15:41:18 +0000 (UTC) Received: from 54-144.adsl.zetnet.co.uk ([194.247.54.144] helo=orange.esperance-linux.co.uk) by atmail-9.bnguk.net with esmtp (Exim 4.69) (envelope-from ) id 1N6meO-0006QG-26; Sat, 07 Nov 2009 14:52:24 +0000 Received: by orange.esperance-linux.co.uk (Postfix, from userid 1001) id D7CB24AC1B; Sat, 7 Nov 2009 14:52:23 +0000 (GMT) Date: Sat, 7 Nov 2009 14:52:23 +0000 From: Frank Shute To: Jason Message-ID: <20091107145223.GA91904@orange.esperance-linux.co.uk> References: <20091106193137.GA73071@eggman.experts-exchange.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091106193137.GA73071@eggman.experts-exchange.com> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 8.0-RC1 amd64 X-Organisation: 'shute.org.uk' Cc: questions@freebsd.org Subject: Re: install.cfg scripting issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Nov 2009 15:41:18 -0000 On Fri, Nov 06, 2009 at 11:31:39AM -0800, Jason wrote: > > Hi, > > I am having a heck of a time getting an automated installation to get a > couple of commands done, and was wondering if anyone would be able to offer > any assistance. > > Everything works, but post does not. I know we will more than likely move to > a post pkg for configuration, but due to the time-frame to deliver, what > follows below will suit needs just fine. > > command='echo sshd_enable="YES" >> /etc/rc.conf.local' > system > command=cp /usr/share/zoneinfo/America/Los_Angeles /etc/localtime > system > command=/sbin/reboot > system > > I've tried the first command, and it fails, with a "command not found," and > I have yet to get past those command to the last commands. I have been using > single ticks, and double-quotes, but nothing is seeming to work. In > addition to this, I have also escaped the quotes. > > Any help is much appreciated. > > Thanks, > Jason I'm not familiar with install.cfg but have you tried using the full path for your command? E.g: command='/bin/echo sshd_enable=\"YES\" >> /etc/rc.conf.local' Ditto with your other commands. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html