From: martin f krafft <madduck@madduck.net>
To: linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: about /proc/*/stat
Date: Wed, 17 Nov 2004 10:28:47 +0100 [thread overview]
Message-ID: <20041117092847.GA961@cirrus.madduck.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 931 bytes --]
If I look at /proc/meminfo, I see each number prefixed with a short
identifying name. Looking at /proc/*/stat, however, I have to count
fields to get to the field I want. I realise that it's probably not
possible to change the format of this file (since it's read by
ps(1), among others), but I wonder if you have any tools that parse
it, similar to /proc/meminfo -- i.e. primarily for debugging?
If not, I have a shell script that works well and which I would then
publicise. I just don't want to push yet another software doing
The Same Thing out there...
--
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: madduck.bogus@madduck.net
"no, 'eureka' is greek for 'this bath is too hot.'"
-- dr. who
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2004-11-17 9:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 9:28 martin f krafft [this message]
2004-11-17 10:20 ` Jan Engelhardt
2004-11-17 10:24 ` martin f krafft
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041117092847.GA961@cirrus.madduck.net \
--to=madduck@madduck.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®