[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Skip headers on ps read
From: |
Andrew Stribblehill |
Subject: |
[PATCH] Skip headers on ps read |
Date: |
Mon, 17 Feb 2003 14:39:08 +0000 |
User-agent: |
Mutt/1.4i |
The output of 'ps' has a heading line at the top:
$ ps auxwww
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 1204 380 ? S Jan21 0:00 init [2]
root 2 0.0 0.0 0 0 ? SW Jan21 0:03 [keventd]
root 3 0.0 0.0 0 0 ? SWN Jan21 0:01 [ksoftirqd_CPU0]
root 4 0.0 0.0 0 0 ? SW Jan21 0:11 [kswapd]
root 5 0.0 0.0 0 0 ? SW Jan21 0:00 [bdflush]
root 6 0.0 0.0 0 0 ? SW Jan21 0:00 [kupdated]
root 28 0.0 0.0 0 0 ? SW Jan21 0:01 [kjournald]
root 103 0.0 0.0 0 0 ? SW Jan21 0:17 [kjournald]
root 104 0.0 0.0 0 0 ? SW Jan21 0:00 [kjournald]
The attached patch makes cfenvd and cfagent skip that line.
--
SOUTH FITZROY
SOUTHEASTERLY VEERING WESTERLY, 4 OR 5 OCCASIONALLY 6. RAIN AT
TIMES. MODERATE OR GOOD
0_ps_skiphead
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Skip headers on ps read,
Andrew Stribblehill <=