I suspect all the info is there in /proc/self/status
All I need is a wee wrapper, let's for arguments sake call statusWrap that...
statusWrap command
* Looks up command on path.
* forks & execs it.
* Somehow catches the exit and before /proc/pid/status vanishes...
* cats /proc/pid/status to stderr
Shouldn't be too hard. I'd write it myself in 5 minutes 'cept I'd feel
a damn fool. This must exist on my system somewhere already...
Surely!
On Tue, 10 Jul 2007, Matthew Gregan wrote:
At 2007-07-10T12:04:45+1200, John Carter wrote:
/usr/bin/time -v ls > /dev/null
[...]
That really doesn't look right. Way too many zeroes everywhere.
Yeah, time(1) is pretty broken and virtually unmaintained on Linux.
Any idea what to use instead?
What figures are you interested in? There don't seem to be many tools
around that will give you the same breadth of information time(1) tries (and
fails) to.
Cheers,
-mjg
--
Matthew Gregan |/
/| [EMAIL PROTECTED]
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : [EMAIL PROTECTED]
New Zealand