Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ps -ef does not work

Status
Not open for further replies.
Nov 12, 2002
12
US
I get an error message that -f is an illegal option when I try a ps -ef. Anyone know what this means?
 
Check which version of ps you are using by typing 'which ps'.
It may be /usr/ucb/ps instead of /usr/bin/ps, which supports the -f option.

-jim
 
Looks like your'e calling the wrong version of ps where does 'whence ps' say it's getting the command from, the Berkley version /usr/ucb/ps does not support the -f option.

Does /usr/bin/ps -ef work?

What does 'echo $PATH' give you - is /usr/ucb ahead of /usr/bin?
 
This means you are using a BSD based unix, not a System V based unix. Try the command...
[tt]
ps -aux
[/tt]
If that gives you what you were expecting from the "[tt]ps -fe[/tt]", then this is a BSD flavor of the [tt]ps[/tt] command. Do a [tt]man ps[/tt] for more info on the valid switches.

Hope this helps.

 
Here is the output of my local.profile:

PATH=/usr/bin:/usr/ucb:/etc:/usr/local/bin:/export/home/local/bin.

I agree that this looks like I am calling up the wrong version but why doesn't my path statement not work?
 
Type which ps to confirm which one it is finding first. If it's the one in /usr/ucb, does /usr/bin/ps exist? Is it executable? Does typing /usr/bin/ps -ef work? Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top