feld on Nostr: npub1uqpxn…fge83 yes but it is specific to FreeBSD world. Juniper invested heavily ...
npub1uqpxnksfc9hemyz0g6ulr6asr3egkjc4xw2d7cahjx7w8d38zrlscfge83 (npub1uqp…ge83) yes but it is specific to FreeBSD world. Juniper invested heavily in this. It's called libxo and it's an absolute nightmare to integrate into these old unix tools for various reasons.
However, it does give us some fun stuff like this:
ps -ax --libxo json
{"process-information": {"process": [{"pid":"631","terminal-name":"- ","state":"IsJ","cpu-time":"0:00.00","command":"/usr/local/lib/erlang/erts-13.2.2.4/bin/inet_gethost 4"}, {"pid":"776","terminal-name":"- ","state":"IJ","cpu-time":"0:00.00","command":"/usr/local/lib/erlang/erts-13.2.2.4/bin/inet_gethost 4"}, {"pid":"12535","terminal-name":"- ","state":"S","cpu-time":"0:00.01","command":"sshd: feld@pts/0 (sshd)"}, {"pid":"37852","terminal-name":"- ","state":"SJ","cpu-time":"18:33.51","command":"/opt/bin/telegram-bot-api -u tbot -g tbot --local -v 3 --http-ip-address=127.0.0.1 -d /home/tbot"}, {"pid":"55357","terminal-name":"- ","state":"IJ","cpu-time":"55:34.09","command":"/app/erts-14.1.1/bin/beam.smp -- -root /app -bindir /app/erts-14.1.1/bin -progname erl -- -home /home/glucy -- -noshell -s elixir start_cli -mode embedded -setcookie J6LWJBM4DBHV7YVWN"}, {"pid":"56088","terminal-name":"- ","state":"IsJ","cpu-time":"0:00.43","command":"/app/erts-14.1.1/bin/inet_gethost 4"}, {"pid":"56201","terminal-name":"- ","state":"IJ","cpu-time":"0:01.72","command":"/app/erts-14.1.1/bin/inet_gethost 4"}, {"pid":"67517","terminal-name":"- ","state":"SJ","cpu-time":"0:03.41","command":"/app/erts-14.1.1/bin/epmd -daemon"}, {"pid":"83153","terminal-name":"- ","state":"IJ","cpu-time":"108:05.24","command":"/usr/local/lib/erlang/erts-13.2.2.4/bin/beam.smp -- -root /usr/local/lib/erlang -bindir /usr/local/lib/erlang/erts-13.2.2.4/bin -progname erl -- -home /home/feld -- -pa /usr/local/lib"}, {"pid":"83898","terminal-name":"- ","state":"IsJ","cpu-time":"0:00.00","command":"erl_child_setup 3770631"}, {"pid":"99830","terminal-name":"- ","state":"IsJ","cpu-time":"0:00.00","command":"erl_child_setup 3770631"}, {"pid":"12792","terminal-name":"0 ","state":"Ss","cpu-time":"0:00.03","command":"-zsh (zsh)"}, {"pid":"62228","terminal-name":"0 ","state":"R+","cpu-time":"0:00.00","command":"ps -ax --libxo json"}]}}
https://github.com/Juniper/libxo
However, it does give us some fun stuff like this:
ps -ax --libxo json
{"process-information": {"process": [{"pid":"631","terminal-name":"- ","state":"IsJ","cpu-time":"0:00.00","command":"/usr/local/lib/erlang/erts-13.2.2.4/bin/inet_gethost 4"}, {"pid":"776","terminal-name":"- ","state":"IJ","cpu-time":"0:00.00","command":"/usr/local/lib/erlang/erts-13.2.2.4/bin/inet_gethost 4"}, {"pid":"12535","terminal-name":"- ","state":"S","cpu-time":"0:00.01","command":"sshd: feld@pts/0 (sshd)"}, {"pid":"37852","terminal-name":"- ","state":"SJ","cpu-time":"18:33.51","command":"/opt/bin/telegram-bot-api -u tbot -g tbot --local -v 3 --http-ip-address=127.0.0.1 -d /home/tbot"}, {"pid":"55357","terminal-name":"- ","state":"IJ","cpu-time":"55:34.09","command":"/app/erts-14.1.1/bin/beam.smp -- -root /app -bindir /app/erts-14.1.1/bin -progname erl -- -home /home/glucy -- -noshell -s elixir start_cli -mode embedded -setcookie J6LWJBM4DBHV7YVWN"}, {"pid":"56088","terminal-name":"- ","state":"IsJ","cpu-time":"0:00.43","command":"/app/erts-14.1.1/bin/inet_gethost 4"}, {"pid":"56201","terminal-name":"- ","state":"IJ","cpu-time":"0:01.72","command":"/app/erts-14.1.1/bin/inet_gethost 4"}, {"pid":"67517","terminal-name":"- ","state":"SJ","cpu-time":"0:03.41","command":"/app/erts-14.1.1/bin/epmd -daemon"}, {"pid":"83153","terminal-name":"- ","state":"IJ","cpu-time":"108:05.24","command":"/usr/local/lib/erlang/erts-13.2.2.4/bin/beam.smp -- -root /usr/local/lib/erlang -bindir /usr/local/lib/erlang/erts-13.2.2.4/bin -progname erl -- -home /home/feld -- -pa /usr/local/lib"}, {"pid":"83898","terminal-name":"- ","state":"IsJ","cpu-time":"0:00.00","command":"erl_child_setup 3770631"}, {"pid":"99830","terminal-name":"- ","state":"IsJ","cpu-time":"0:00.00","command":"erl_child_setup 3770631"}, {"pid":"12792","terminal-name":"0 ","state":"Ss","cpu-time":"0:00.03","command":"-zsh (zsh)"}, {"pid":"62228","terminal-name":"0 ","state":"R+","cpu-time":"0:00.00","command":"ps -ax --libxo json"}]}}
https://github.com/Juniper/libxo