From owner-freebsd-questions@FreeBSD.ORG Sat Apr 19 15:51:53 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EA24DD2F for ; Sat, 19 Apr 2014 15:51:53 +0000 (UTC) Received: from relay.mailchannels.net (si-002-i53.relay.mailchannels.net [184.154.112.227]) by mx1.freebsd.org (Postfix) with ESMTP id 1A94B1D83 for ; Sat, 19 Apr 2014 15:51:52 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.34.133 Received: from mail-24.name-services.com (ip-10-244-196-74.us-west-2.compute.internal [10.244.196.74]) by relay.mailchannels.net (Postfix) with ESMTPA id D636160906 for ; Sat, 19 Apr 2014 15:51:50 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.34.133 Received: from mail-24.name-services.com (mail-24.name-services.com [10.244.170.26]) (using TLSv1 with cipher AES128-SHA) by 0.0.0.0:2500 (trex/5.0.19); Sat, 19 Apr 2014 15:51:51 GMT X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from%7C107.201.34.133 X-MailChannels-Auth-Id: demandmedia Received: from [192.168.1.64] (107-201-34-133.lightspeed.bcvloh.sbcglobal.net [107.201.34.133]) by mail-24.name-services.com with SMTP; Sat, 19 Apr 2014 08:51:45 -0700 Message-ID: <53529B92.1070909@a1poweruser.com> Date: Sat, 19 Apr 2014 11:51:46 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: FreeBSD Questions Subject: 10.0 + pkgng Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Apr 2014 15:51:54 -0000 The handbook says to activate pkgng on a newly installed 10.0 system by first executeing /usr/sbin/pkg followed by pkg2ng. Both these programs issue message that you have to enter [y or n] to continue. I want to bury these commands in a script. There is no -y flag to bypass that message. What is best method to code script to answer "y" to automate script processing?