PDA

View Full Version : Full "ps" command



BeagleBoy
11-28-2007, 01:41 AM
Here's a full-featured copy of the ps command (as opposed to the busybox version). It's the same version as most linux distros come with.

It also includes a bare-bones passwd file (goes in /etc) so it prints "root" instead of "0."

Example:

tivo-d:/var/hack$ ps u
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 10060 0.0 0.8 3572 792 ttyp0 Ss+ Nov19 0:00 /bin/bash --login
root 32010 0.0 1.0 3552 952 ttyS2 S+ Nov27 0:00 /bin/bash --login -m --
root 11744 0.0 1.3 3576 1204 ttyp1 Ss 02:38 0:01 /bin/bash --login
root 13323 0.0 0.9 2528 856 ttyp1 R+ 05:37 0:00 ps u
-Jim

Soapm
11-28-2007, 01:53 AM
which one do I need for a S2 649DT?

ScanMan
11-28-2007, 11:13 AM
which one do I need for a S2 649DT?Doesn't matter, both this and the 'busybox' version in AlphaWolf's All-In-One work fine. The busybox version does not support all options, this one does.

Soapm
11-30-2007, 03:56 AM
My question was more that there are two files in the post. How do you know which one to use or where to put it? Is one for S1 and the other for S2/S3?

jt1134
11-30-2007, 04:30 AM
The ps-bin tarball includes the binary that you run on your tivo. The procps tarball contains source code. It's apparently built for mips (S2, S3). If you don't know the difference or how to install it, then it probably won't be of much added value to you then your current version is.

Soapm
12-01-2007, 01:12 AM
The ps-bin tarball includes the binary that you run on your tivo. The procps tarball contains source code. It's apparently built for mips (S2, S3). If you don't know the difference or how to install it, then it probably won't be of much added value to you then your current version is.

Good point, moma always said too much candy ain't good for me anyway... But you know what I did???