1828993 Members
2469 Online
109986 Solutions
New Discussion

process output

 
SOLVED
Go to solution
Shivkumar
Super Advisor

process output

Dear Sirs/Madam,

I have an output as shown below:

$ ps -ef|grep weblogic
weblogic 20040 20026 0 Sep 23 ? 2727:09 /opt/bea/jdk131_09/bin/../bin/PA_RISC2.0/native_threads/java -X

I need to know what this path means:
/opt/bea/jdk131_09/bin/../bin/PA_RISC2.0/native_threads/java -X

Why there is double .. in between ? What does it indicate ?

Why this is not running as from a path like:
/opt/bea/jdk131_09/bin/PA_RISC2.0/native_threads/java

Secondly, -X stands for what ?

Thanks,
Shiv

4 REPLIES 4
Bill Hassell
Honored Contributor
Solution

Re: process output

There are 2 predefined directories in all Unix systems and they are: . .. (dot and dot-dot). The . in a directory string means current directory and .. means parent directory. If you type the command:

ll -a

and you'll see two directories at the top of the listing, . and ..

Now to answer the question, why have /../ in the path? You'll have to ask the programmers. Unix doesn't care if you use a path like:

cd /dir1/dir2/../dir3/dir4/../../dir5/

What is this really? If you type the command: pwd, you'll find yourself in /dir1/dir5. Is this obfuscation necssary? Doubtful, but then the WebLogic code uses it to locate the path it needs. It just looks very ugly on the command line.


Bill Hassell, sysadmin
Rajeev  Shukla
Honored Contributor

Re: process output

Hi Shiv,

Thats right, its the relative way of addressing the PATH. If you look at /opt/bea/jdk131_09/bin/../bin/PA_RISC2.0/native_threads/java and /opt/bea/jdk131_09/bin/PA_RISC2.0/native_threads/java
They both mean the same and the reason why weblogic has the earlier command in ps output is because when it runs weblogic the PATH and BASE is already set to /opt/bea/jdk131_09/bin and to reach the java executable it goes a directory back from base and i.e ../bin and then runs the whole executable.
Now -X options if you have a look at java -X you'll see it says that The -X options are non-standard and subject to change without notice.
Yogeeraj_1
Honored Contributor

Re: process output

hi,

ps -efx|grep weblogic

will give you the full command line.

the -X switch means "print help on non-standard options"

you can get the different switches for the java command by just typing "java" at the command line.

hope this helps too!

kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Michael Schulte zur Sur
Honored Contributor

Re: process output

Hi,

in this case
/opt/bea/jdk131_09/bin/../bin/PA_RISC2.0/native_threads/java -X
is the same as
/opt/bea/jdk131_09/bin/PA_RISC2.0/native_threads/java -X

greetings,

Michael