On Wed, 5 Mar 2003, cana rich wrote:

> 
> Hello,
> 
>     I have a Linux machine without 'ps' command. I would like to copy
> a compiled 'ps' (ps -axf) command so i can exeute it on this machine.
> 
> I didn't find the source code for 'ps', only the RPM. I don't have RPM
> application on the linux machine.
> 
> Thanks for your help.
> 
> Canarich
> 
You can get procps source rpm, install it, and get the tar archive from 
the /usr/src/redhat/SOURCES directory (if installed by root).  Or you 
can go to freshmeat.net, do a search for ps, and get the source code 
that way.  For any program that comes with Redhat, you can find what RPM 
it cam with by first finding the location of the wife, and then using 
rpm to find what RPM it belongs to.  (Ok - I know it can ge done in one 
command...)

type <command name>              - gives you the path to the command.
rpm -qf <command with full path> - give you the RPM name.

[EMAIL PROTECTED] Card]$ type ps
ps is /bin/ps
[EMAIL PROTECTED] Card]$ rpm -qf /bin/ps
procps-2.0.7-12

Mikkel
-- 

    Do not meddle in the affairs of dragons,
 for you are crunchy and taste good with ketchup.



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to