Operating System - HP-UX
1748227 Members
4349 Online
108759 Solutions
New Discussion юеВ

Re: ps -aef command in HP UX

 
E.Gopi Kannan
Occasional Advisor

ps -aef command in HP UX

Not able to get the output after running the ps -aef command in HP UX.!!

# ps -aef
# uname
HP-UX
#
6 REPLIES 6
Kranti Mahmud
Honored Contributor

Re: ps -aef command in HP UX

Hi Kannan,

ps -aef should run. You can alternativel run pa -ef. You also can check the man page of ps command or the below link:

http://docs.hp.com/en/5991-6469/ch09s20.html

rgds-Kranti
Dont look BACK as U will miss something INFRONT!
P Muralidhar Kini
Honored Contributor

Re: ps -aef command in HP UX

Hi Gopi,

>> Not able to get the output after running the ps -aef command in HP UX.!!
This is wierd.

Try the PS command with other options and check how that behaves.
i.e. whether you get any output or not.

The following link talks about the PS command and its various options -
http://docs.hp.com/en/B3921-60631/ps.1.html

Read though the above link and try PS command with various other options
and let us know whether it displays any output or not.

Regards,
Murali
Let There Be Rock - AC/DC
Matti_Kurkela
Honored Contributor

Re: ps -aef command in HP UX

Your ps command might be aliased to something that cannot handle the options properly, or you might have a conflicting binary in some dirctory located before /usr/bin in your PATH. Try explicitly starting the real ps binary:

# /usr/bin/ps -aef

If that works, the output of these commands might help in finding out why ps without path does not work:

# whence ps
# echo $PATH
# set

If running the ps command with an explicit path does not work either, you should verify that the ps command has not been manipulated or corrupted:

# file /usr/bin/ps

# swverify OS-Core
(At the end of swverify output, there will be a swjob command line you can use to view the results of the swverify job. Run it and see what it says about /usr/bin/ps.)

MK
MK
Bill Hassell
Honored Contributor

Re: ps -aef command in HP UX

> Not able to get the output after running the ps -aef

Something very important is missing here: what do you mean "get the output"? Do you mean that ps produced NO result at all? Or it gave you an error? What was the error message?

As mentioned, someone may have aliased ps so bypass the alias by using the fullpath for ps:

/usr/bin/ps -aef

> # uname
> HP-UX

Not very useful. uname -a would have been a bit more useful.


Bill Hassell, sysadmin
E.Gopi Kannan
Occasional Advisor

Re: ps -aef command in HP UX

Hi All,

Thanks for all your replies.!!!

The ps file was missing on that server. I have recovered it from the other one.

Now its working fine.
Kapil Jha
Honored Contributor

Re: ps -aef command in HP UX

Pretty strange if ps was not there it should complaint that ps is not there....
how come u had no error.
any alias or smthing.

BR,
Kapil+
I am in this small bowl, I wane see the real world......