From owner-freebsd-current@FreeBSD.ORG Mon Mar 2 01:47:35 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0DEE199C for ; Mon, 2 Mar 2015 01:47:35 +0000 (UTC) Received: from mx1.scaleengine.net (beauharnois2.bhs1.scaleengine.net [142.4.218.15]) by mx1.freebsd.org (Postfix) with ESMTP id C12645E8 for ; Mon, 2 Mar 2015 01:47:34 +0000 (UTC) Received: from [192.168.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id 966EC93DC6 for ; Mon, 2 Mar 2015 01:47:32 +0000 (UTC) Message-ID: <54F3C134.5080207@freebsd.org> Date: Sun, 01 Mar 2015 20:47:32 -0500 From: Allan Jude User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Massive libxo-zation that breaks everything References: <54F31510.7050607@hot.ee> <54F34B6E.2040809@astrodoggroup.com> <54F35F29.4000603@astrodoggroup.com> <54F36431.30506@freebsd.org> In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UmMbL2qheo0sCWXh5BUhKMsIVwUi1Fogt" 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 01:47:35 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UmMbL2qheo0sCWXh5BUhKMsIVwUi1Fogt Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2015-03-01 19:20, Arseny Nasokin wrote: > On 1 March 2015 at 22:10, Allan Jude wrote: >=20 >> 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 ba= se >>> 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.ht= ml >>>> _______________________________________________ >>>> 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 th= e >> tools in base, like netstat, wc, uptime, etc, output in JSON or XML, s= o >> 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, >=20 > Do we have command-line tools in base which work with XML/JSON from std= in > or file? >=20 > -- Eir Nym > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o= rg" >=20 Not really, although there are libraries for such (bsdxml, libucl which can read JSON) in base. I am working on a tool that can do some of this: https://github.com/allanjude/uclcmd/ --=20 Allan Jude --UmMbL2qheo0sCWXh5BUhKMsIVwUi1Fogt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJU88E4AAoJEJrBFpNRJZKfhtIQALkqM3ZFNF8IdVjIbO57a/M9 NIpm6Uf6FH9aX0gtw87vrtIsTmBYJne8hGB2xWamIJ4ZtwrCf8GfqGF+c0sONOi8 T0VJrreyfvOcF3tymFg1RH8OJFzNRzbafMpcs/I1P7cEd41nQJMEdVJa18iHqyJd NDVRLmsoonLViwu00ZzviDh2yhHPEHWjUUYeyl0PAFxMDzHBRyIz8M5nc8P3U7Aa fWRXN2ET8bZB7veZL6j/iX2EfTccGgkkfKHAhCcujvAigoFqR19YmiftqRFIjzrj /pvptYe/zBYot3AX2KSbc5ojbenAo5QE3DFShWFje/aKo5Ok5RKPEFbW2FK5AiJ+ cdBaFX3muMi03vSTGabn27qF7dt8KoBAHtGTgbmgChh6K2/E4QliXCC5WyuhQuB+ XWzLnaP6VIZRxhOZKsHNGg/6iiizAzFIW+Wm6soEkNdKyFKxFZ3HPoDDO9A975mn JPSbJFWzUg3I0eAKlidTYjOmE/UD6O+rTy6e/kg/U/CJLRVGiH8rsSsSk6A3qg6k 2FatEVciYzOSYrrdNY4r9yhJrZ5wdqxJUrVeKNLpQDxlgaSWMM7vIn5i/XQ54IKo OP1f7BEJSprtwVS+90gwhpezHTqmixpacudKmFWSo3m8u7VfxS0XLr/y9/TdnR5a 2RGqOLogJC8YDiNkAdTm =M26X -----END PGP SIGNATURE----- --UmMbL2qheo0sCWXh5BUhKMsIVwUi1Fogt--