Click to See Complete Forum and Search --> : Can I reload ps?
datadan
07-06-2001, 09:42 AM
Whenever I attempt to run ps aux I get a segmentation fault or a core dump.
Can I reload the RPM? If so which rpm is it?
I would really really really like to run ps aux so if anyone has any pointers on how to get this going I'd appreaciate it.
Thanks
(rh6.2 ker 2.2.14)
bdg1983
07-06-2001, 04:44 PM
There is a way to query the rpm database to find out what package a filename belongs to, although I cannot think of it right now.
'man rpm' will tell you.
datadan
07-06-2001, 05:09 PM
mdwatts,
Thanks for you input, rpm -query {package name} does this, however ps is part of the base install I think...I don't know. I can't find any independant RPMs. After doing more research I believe CRON is my problem. IT's broke and this is causing ps not to function (I think). So now the question is...How do I repair/re-install cron? I have power cycled the machine with no luck.
ideas?
bdg1983
07-06-2001, 07:08 PM
rpm -q packagename will tell you if the package is installed, but there is a way to list the package a certain filename belongs to.
I'm not using Linux right now so I can't check to see what parameters to use. I do know that the man pages for rpm has the correct parms for this function.
slapNUT
07-06-2001, 09:22 PM
rpm -q --whatprovides `which ps`
procps-2.0.7-6mdk
datadan
07-06-2001, 09:33 PM
I fear I may have to rebuild....
When I try the fpm --whatprovides 'x' I get:
[root@mail /root]# rpm -q --whatprovides 'vacation'
vacation-1.2.0-1
[root@mail /root]# rpm -q --whatprovides 'vac'
no package provides vac
[root@mail /root]# rpm -q --whatprovides 'identd'
no package provides identd
[root@mail /root]# rpm -q --whatprovides 'cron'
no package provides cron
[root@mail /root]# rpm -q --whatprovides 'cron.daily'
no package provides cron.daily
[root@mail /root]# rpm -q --whatprovides 'ps a'
no package provides ps a
[root@mail /root]# rpm -q --whatprovides 'ps'
no package provides ps
[root@mail /root]# rpm -q --whatprovides 'ps -aux'
no package provides ps -aux
Any other ideas on how to restore my cron ps engines.
Thanks
slapNUT
07-06-2001, 09:49 PM
When you do the --whatprovides you have to supply the complete path. That is why I use `which ps` is the same as /bin/ps