This one-liner will give you a table with header. You can change what you want displayed by changing the -o output format fields, or do without a header with the --noheader option.
ps -o pid,stat --pid `cat pidlist`
Last edited by jschiwal; 07-02-2004 at 07:39 PM.
|