From owner-freebsd-current@FreeBSD.ORG Mon Mar 2 00:21:09 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 99F19162; Mon, 2 Mar 2015 00:21:09 +0000 (UTC) Received: from mail-pd0-x230.google.com (mail-pd0-x230.google.com [IPv6:2607:f8b0:400e:c02::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 72C55A54; Mon, 2 Mar 2015 00:21:09 +0000 (UTC) Received: by pdbnh10 with SMTP id nh10so9280881pdb.4; Sun, 01 Mar 2015 16:21:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=vCFZMZGNcKClrYkdvJAzz4Bk0FOuizOdCHTkIBBeGLQ=; b=FgwldTMqX6OI+Uh3EIwjnPs8MOkTeXtBMcd6UzS3GQynlAT5PZ37+aKx7q/BEqXYJ6 Ul4BRImgNIwqqprqcZvEgKE3emn5H51zKpeADZS6m4MkR/FBxqVqMvj28IM/RFvRwtcF OS4wMDccW8gzncG/uv2vhbaLKr7PeCi0cf8eGKc2Ym+FZ2nPjyypb20+P2eQpy+7LuhT MqaFxtjbHskedKB0OBwDCIixj0NSHw6Kt1MzBnh9FQXZ+QF1s4saBdsQpucxzLmCt5AH gGJzdWxfFGCVIwgmutDdeKvUa82mEFL05BqQLxZ14LmVMJDK6BkU1/5PWpJZ20TXYWI2 FSZg== X-Received: by 10.66.63.72 with SMTP id e8mr41628832pas.3.1425255668962; Sun, 01 Mar 2015 16:21:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.66.237.39 with HTTP; Sun, 1 Mar 2015 16:20:48 -0800 (PST) In-Reply-To: <54F36431.30506@freebsd.org> References: <54F31510.7050607@hot.ee> <54F34B6E.2040809@astrodoggroup.com> <54F35F29.4000603@astrodoggroup.com> <54F36431.30506@freebsd.org> From: Arseny Nasokin Date: Mon, 2 Mar 2015 04:20:48 +0400 Message-ID: Subject: Re: Massive libxo-zation that breaks everything To: Allan Jude Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Mar 2015 00:21:09 -0000 On 1 March 2015 at 22:10, Allan Jude wrote: > On 2015-03-01 13:49, Harrison Grundy wrote: > > Thanks! > > > > That does seem useful, but I'm not sure I see the reasoning behind > > putting into base, over a port or package, since processing XML in base > > is a pain, and it can't serve up JSON or HTML without additional > > utilities anyway. > > > > (If I'm reviving a long-settled thing, let me know and I'll drop it. I'm > > trying to understand the use case for this.) > > > > --- Harrison > > > > On 03/01/15 10:31, Craig Rodrigues wrote: > >> On Sun, Mar 1, 2015 at 9:25 AM, Harrison Grundy < > >> harrison.grundy@astrodoggroup.com> wrote: > >> > >>> > >>> > >>> If someone could summarize what this is, I'd greatly appreciate it. > >>> > >> > >> https://lists.freebsd.org/pipermail/freebsd-arch/2014-July/015633.html > >> _______________________________________________ > >> freebsd-current@freebsd.org mailing list > >> http://lists.freebsd.org/mailman/listinfo/freebsd-current > >> To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org" > >> > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to " > freebsd-current-unsubscribe@freebsd.org" > > > > I think you're missing the important bit here. > > This isn't about adding a parser for anything, this is about making the > tools in base, like netstat, wc, uptime, etc, output in JSON or XML, so > you can use the data programmatically. > > Your scripts no longer have to rely on awk/sed/grep magic to get a > specific bit of information out of the uptime command, the command can > just output the data in a structured machine readable format. > > I am not sure how you can put netstat into the ports tree. > > > -- > Allan Jude > > Hi, Do we have command-line tools in base which work with XML/JSON from stdin or file? -- Eir Nym