![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| find and replace command in one line using one command | vasikaran | UNIX for Dummies Questions & Answers | 10 | 08-20-2008 07:40 AM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 03:06 PM |
| Add line command | felixwhoals | UNIX for Dummies Questions & Answers | 3 | 12-16-2007 08:12 PM |
| how to tell which OS via command line | hankooknara | UNIX for Dummies Questions & Answers | 4 | 05-15-2007 08:39 PM |
| How do I get ssh to run a command in one line? | LordJezo | Shell Programming and Scripting | 2 | 07-01-2004 08:54 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Quote:
Code:
$ ps -e -o pid,pcpu,comm|head -n1;ps -e -o pid,pcpu,comm|tail +2|grep "${user}"
PID %CPU COMMAND
$
|
| Forum Sponsor | ||
|
|
|
|||
|
Processes current user
ps -u $user -o user,pid,pcpu,comm Processes all users ps -e -o user,pid,pcpu,comm Processes specific users ps -u root,nobody -o user,pid,pcpu,comm Sorry for the run around. I had forgotten about the "-u" option. Last edited by beilstwh; 07-14-2004 at 12:42 PM. |
|||
| Google The UNIX and Linux Forums |