Products | Versions |
---|---|
TIBCO Administrator | - |
Not Applicable | - |
Use the following command on Linux:
ls -l /proc/<PID>/exe OR readlink -f /proc/<PID>/exe |
Example 1: You want to find the path from where the Administrator Domain process is running on Linux. 1). To find the process ID of running process: [tibco@vminfra2-box2 bin]$ ps -ef |grep admin tibco 23972 677 0 Oct20 pts/0 00:07:46 ./tibcoadmin_rv_842_domain --innerProcess tibco 24292 677 0 Oct20 pts/0 00:07:50 ./tibcoadmin_rv_843_domain --innerProcess 2). ls -l or readlink command. [tibco@vminfra2-box2 bin]$ ls -l /proc/23972/exe lrwxrwxrwx. 1 tibco tibco 0 Oct 21 09:39 /proc/23972/exe -> /home/tibco/tibco_rv842/administrator/domain/rv_842_domain/bin/tibcoadmin_rv_842_domain [tibco@vminfra2-box2 bin]$ ls -l /proc/24292/exe lrwxrwxrwx. 1 tibco tibco 0 Oct 21 09:39 /proc/24292/exe -> /home/tibco/tibco_rv843/administrator/domain/rv_843_domain/bin/tibcoadmin_rv_843_domain |
Example 2: You want to find out the installed path from where the RVD process is running on Linux. 1). Find the process ID of running process: [tibco@vminfra2-box2 bin]$ ps -ef |grep rvd tibco 23904 1 0 Oct20 ? 00:00:55 rvd -listen tcp:7500 -no-permanent tibco 23994 1 0 Oct20 ? 00:00:09 rvd -listen tcp:7474 -no-permanent tibco 24398 1 0 Oct20 ? 00:00:09 rvd -listen tcp:7774 -no-permanent tibco 24413 1 0 Oct20 ? 00:00:43 rvd -listen tcp:7700 -no-permanent 2). ls -l or readlink command. [tibco@vminfra2-box2 bin]$ readlink -f /proc/23904/exe /home/tibco/tibco_rv842/tibrv/8.4/bin/rvd [tibco@vminfra2-box2 bin]$ readlink -f /proc/23994/exe /home/tibco/tibco_rv842/tibrv/8.4/bin/rvd [tibco@vminfra2-box2 bin]$ readlink -f /proc/24398/exe /home/tibco/tibco_rv843/tibrv/8.4/bin/rvd [tibco@vminfra2-box2 bin]$ readlink -f /proc/24413/exe /home/tibco/tibco_rv843/tibrv/8.4/bin/rvd The above command will help identify rvd being is spawned from a different TIBCO_HOME directory. |
NOTE: If you are interested to find out the current working directory of the running process then you should use pwdx . pwdx <PID> Example 3: 1). To find the process ID of the running process: [tibco@vminfra2-box2 bin]$ ps -ef |grep admin tibco 23972 677 0 Oct20 pts/0 00:07:46 ./tibcoadmin_rv_842_domain --innerProcess tibco 24292 677 0 Oct20 pts/0 00:07:50 ./tibcoadmin_rv_843_domain --innerProcess 2). Use the pwdx <PID> command: [tibco@vminfra2-box2 bin]$ pwdx 23972 23972: /home/tibco/tibco_rv842/administrator/5.10/tomcat [tibco@vminfra2-box2 bin]$ pwdx 24292 24292: /home/tibco/tibco_rv843/administrator/5.10/tomcat Note the difference in Example 1 and Example 3. Example 1 shows the process binary path <TIBCO_HOME>/administrator/Domain/<DomainName>/bin . Example 2 pwdx shows the parent process's current working directory. <TIBCO_HOME>/administrator/<Version>/tomcat . |