From owner-freebsd-questions@FreeBSD.ORG Sun May 12 12:47:22 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AD1EF2B2 for ; Sun, 12 May 2013 12:47:22 +0000 (UTC) (envelope-from cyberleo@cyberleo.net) Received: from paka.cyberleo.net (mtumishi.cyberleo.net [216.226.128.201]) by mx1.freebsd.org (Postfix) with ESMTP id 8DF9DA18 for ; Sun, 12 May 2013 12:47:22 +0000 (UTC) Received: from [172.16.44.4] (den.cyberleo.net [216.80.73.130]) by paka.cyberleo.net (Postfix) with ESMTPSA id 0F1F011BFC6; Sun, 12 May 2013 08:47:15 -0400 (EDT) Message-ID: <518F8F52.4050203@cyberleo.net> Date: Sun, 12 May 2013 07:47:14 -0500 From: CyberLeo Kitsana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130410 Thunderbird/17.0.5 MIME-Version: 1.0 To: Leslie Jensen Subject: Re: Can I avoid the display of pkg-messages in portmaster? References: <518F2AAA.3010208@eskk.nu> In-Reply-To: <518F2AAA.3010208@eskk.nu> X-Enigmail-Version: 1.6a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@FreeBSD.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 12:47:22 -0000 On 05/12/2013 12:37 AM, Leslie Jensen wrote: > > > I do some work on remote machines and sometimes I have a need to execute > additional commands after for example a portmaster -a command. > > Normally I use the "&&" to separate commands but this does not work when > portmaster displays pkg-messages. > > I cannot see in the portmaster manpage that there's a possibility to > make the choice on displaying pkg-messages. > > Maybe a suggestion to further enhance portmaster in the future. > > To work around this I was thinking of maybe making a script that ran > > portmaster -a then a command to "press space" until one is sure that all > messages has been displayed. > > On this I could need some help. My scripting skills are not that good. To avoid interaction when scripting or logging portmaster, in addition to the --no-confirm option, I usually set the following environment variables prior to invocation: BATCH=yes PAGER=cat The former should avoid any build-time port interaction (and mark the port BROKEN if it must, so I can deal with it manually); the latter causes portmaster to use 'cat' instead of 'more' to display the pkg-messages afterwards. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://www.fur.com/peace/