If you'll specify how you want it to look / work I'll (possibly) attempt to provide a patch.
I.e. * What's the executable name? To me this is just an output mode for svstat, but of course you may not agree. * What are the options? If it just unconditionally dumps all the data that svstat has available, that works for me. * What it's the output format? To me, JSON is the universally parseable format, but you seem to take issue with JSON. The only simpler thing would be dumping null-delimited raw values, with implicit field names. --phone is hard. On Oct 17, 2015 8:12 AM, "Laurent Bercot" <[email protected]> wrote: > On 16/10/2015 23:11, Buck Evan wrote: > >> If you'll specify how you want it to look / work I'll (possibly) attempt >> to provide a patch. >> >> `s6-svstat --json` is my initial bid. >> > > Uuuh, there's no way I'll write something that produces json. > If you have a program that can easily read json, then you might > as well use the s6_svstatus_read() C interface directly. That's > not the API level that's missing. > > What's missing is something usable in scripts, where you can > choose the output via an option, without having to parse the > human-readable format. Something à la uname. I'll add that when > I get some time (and thanks for reminding me). > > -- > Laurent > >
