Date: Mon, 21 Jul 2014 12:49:23 +0300 From: Zaro Korchev <zkorchev@mail.bg> To: soc-status@freebsd.org Subject: Re: [Machine readable output from userland utilities] report Message-ID: <FAF68F13-9DC0-4707-866E-F5C4C859DD45@mail.bg> In-Reply-To: <60B2286C-F0BA-4757-9603-BE23E365A576@mail.bg> References: <8D1B686D-1AAA-4E07-9270-E42699110561@mail.bg> <2F779B73-EAC5-49B4-B3E8-7A81109EC166@mail.bg> <5AF0FF20-E41B-4D46-A427-D84D9E2CD047@mail.bg> <C9A0231C-553B-4046-9181-F3D8866DB9F6@mail.bg> <CE908FC5-321D-40BA-9756-72904F93AA51@mail.bg> <19220D3B-101C-45A4-AE41-068E033D5F92@mail.bg> <60B2286C-F0BA-4757-9603-BE23E365A576@mail.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi everybody This week I worked on the packages finger w uptime du All of them now support libsol. The packages w and uptime actually share = their source code. The package finger has a long format that prints the contents of several = files. I made the application not use libsol if this option is specified = since it is not very useful to generate json/yaml/etc. which contains = several files as string values. It would also be troublesome to = implement. Here is an example from du -h /etc/ { "/etc/pam.d": "64K", "/etc/skel": "4.0K", "/etc/defaults": "60K", "/etc/pkg": "8.0K", "/etc/mail/certs": "16K", "/etc/mail": "400K", "/etc/gss": "12K", "/etc/zfs": "4.0K", "/etc/ppp": "8.0K", "/etc/ssh": "292K", "/etc/security": "48K", "/etc/mtree": "52K", "/etc/X11": "4.0K", "/etc/casper": "24K", "/etc/dma": "8.0K", "/etc/periodic/weekly": "28K", "/etc/periodic/daily": "112K", "/etc/periodic/monthly": "16K", "/etc/periodic/security": "64K", "/etc/periodic": "224K", "/etc/devd": "128K", "/etc/ssl": "16K", "/etc/bluetooth": "16K", "/etc/gnats": "8.0K", "/etc/rc.d": "696K", "/etc/": "2.7M" } Here is an example from uptime {"time":" = 9:45AM","uptime":{"hours":2,"minutes":40},"users":3,"load":[0.27001953125,= 0.2919921875,0.2958984375]} This week I am going to concentrate on revising what I have done so far = and looking for problems. I am also going to think of ways I can improve = libsol. Zaro=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FAF68F13-9DC0-4707-866E-F5C4C859DD45>