# $HeadURL$ $LastChangedRevision$ From alexishuxley+caf_=alexis=dione.no-ip.org@gmail.com Mon Aug 2 12:48:41 2010 Return-Path: X-Original-To: alexis@dione.no-ip.org Delivered-To: alexis@dione.no-ip.org Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by trennette.pasta.net (Postfix) with ESMTP id 4CF7FA11DF for ; Mon, 2 Aug 2010 12:48:31 +0200 (CEST) Received: by fxm8 with SMTP id 8so1653790fxm.25 for ; Mon, 02 Aug 2010 03:48:30 -0700 (PDT) Received: by 10.239.182.9 with SMTP id o9mr301789hbg.57.1280746110385; Mon, 02 Aug 2010 03:48:30 -0700 (PDT) X-Forwarded-To: alexis@dione.no-ip.org X-Forwarded-For: alexishuxley@gmail.com alexis@dione.no-ip.org Delivered-To: alexishuxley@gmail.com Received: by 10.239.164.71 with SMTP id s7cs563465hbd; Mon, 2 Aug 2010 03:48:30 -0700 (PDT) Received: by 10.223.109.2 with SMTP id h2mr5521970fap.95.1280746106843; Mon, 02 Aug 2010 03:48:26 -0700 (PDT) Received-SPF: softfail (google.com: best guess record for domain of transitioning ahuxley@eso.org does not designate 85.158.138.179 as permitted sender) client-ip=85.158.138.179; Received: by 10.184.13.20 with POP3 id 20mf586504fxm.35; Mon, 02 Aug 2010 03:48:26 -0700 (PDT) X-Gmail-Fetch-Info: ahuxley@gmx.net 2 pop.gmx.net 995 13979910 Delivered-To: GMX delivery to ahuxley@gmx.net Received: (qmail invoked by alias); 02 Aug 2010 10:48:10 -0000 Received: from mail169.messagelabs.com (HELO mail169.messagelabs.com) [85.158.138.179] by mx0.gmx.net (mx065) with SMTP; 02 Aug 2010 12:48:10 +0200 X-VirusChecked: Checked X-Env-Sender: ahuxley@eso.org X-Msg-Ref: server-15.tower-169.messagelabs.com!1280746089!33933221!1 X-StarScan-Version: 6.2.4; banners=-,-,- X-Originating-IP: [134.171.75.149] Received: (qmail 21751 invoked from network); 2 Aug 2010 10:48:09 -0000 Received: from aeon.hq.eso.org (HELO aeon.hq.eso.org) (134.171.75.149) by server-15.tower-169.messagelabs.com with SMTP; 2 Aug 2010 10:48:09 -0000 Received: from mercury.hq.eso.org (mercury.hq.eso.org [134.171.7.20]) by aeon.hq.eso.org (Postfix) with ESMTP id 334A85A62B for ; Mon, 2 Aug 2010 12:48:09 +0200 (CEST) Received: from prillo.hq.eso.org (prillo.hq.eso.org [134.171.75.134]) by mercury.hq.eso.org (8.13.6+Sun/8.12.10) with ESMTP id o72Am9ro009696 for ; Mon, 2 Aug 2010 12:48:09 +0200 (MEST) Received: from nb016161.hq.eso.org (acmp2.hq.eso.org [134.171.16.72]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ahuxley) by prillo.hq.eso.org (Postfix) with ESMTPSA id 6725DE60D for ; Mon, 2 Aug 2010 12:34:13 +0200 (CEST) Date: Mon, 2 Aug 2010 12:48:07 +0200 From: Alexis Huxley To: ahuxley@gmx.net Subject: [ahuxley@eso.org: rocon output format change ... ideas sought] Message-ID: <20100802104807.GL20391@nb016161.hq.eso.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-GMX-Antivirus: 0 (no virus found) X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=5D7Q89H36p6i75npGen84eVAEFK/syJmiNoEBJhgjYKpglu1TZLLw7xMZnJMXwBFy+Sxe D/AUQGQOurK3ezVJqUBFH0uN5pjmWoMfpyHp50EZ60/Y6hM43eiKLTaE/W0dI7nIn8+pr4SzneyH Jeytg==V1; Status: RO Content-Length: 1502 Lines: 47 ----- Forwarded message from Alexis Huxley ----- Date: Tue, 27 Jul 2010 14:41:43 +0200 From: Alexis Huxley To: sos@eso.org Subject: rocon output format change ... ideas sought Not to be implemented on ESO time, but I was thinking of adding options to rocon to control the output format. As we're using it here a lot, I thought it made sense to collect ideas from you. Currently a normal output is displayed like this: sosmplx1# rocon -c pwd sosmplx1 sosmplx1[stdout]: /root and error output like this: sosmplx1# rocon -c sadfafsdf sosmplx1 sosmplx1[stdout]: sosmplx1[stderr]: /bin/bash: line 1: sadfafsdf: command not found and no output is displayed like this: sosmplx1# rocon -c true sosmplx1 sosmplx1[stdout]: The most flexible method to control this would be something like the example below: sosmplx1# rocon --format="%{host}:%{handle}:\t%{output}\n" --print-stdout=ifnotempty, --print-stderr=ifnotempty -c ... where %{host} displays the hostname, %{handle} displays 'stdout' or 'stderr', %{output} displays the output that that host wrote to that output handle, and 'ifnotempty' could also be 'always' or 'never' (or 'yes' or 'no'). This would allow to control *which* lines are displayed and *how* they appear. If anybody has any suggestions (making this briefer, other fields to be displayed, "yes, that would be fine!", etc), then your feedback would be appreciated. Thanks! Alexis ----- End forwarded message -----