Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Mar 2015 20:47:32 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: Massive libxo-zation that breaks everything
Message-ID:  <54F3C134.5080207@freebsd.org>
In-Reply-To: <CAO8GK0oFwQXb=wKNX%2Bp7fHguK-hk=EXr%2Bbrx1SWvkdnv4z3efQ@mail.gmail.com>
References:  <54F31510.7050607@hot.ee> <54F34B6E.2040809@astrodoggroup.com> <CAG=rPVfcB1Fy_8mHq-t5Ay07yrzuSGthQ0ZcGzvp0XG9gSSzkg@mail.gmail.com> <54F35F29.4000603@astrodoggroup.com> <54F36431.30506@freebsd.org> <CAO8GK0oFwQXb=wKNX%2Bp7fHguK-hk=EXr%2Bbrx1SWvkdnv4z3efQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <allanjude@freebsd.org> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54F3C134.5080207>