A script is running from an unknown location.how we can find its exact location.
A script is running from an unknown location in the system.How we can find its exact location.We only know the name of the script.
|
lsof will probably show the full path of the script for you.
|
You can also use locate command to locate the full path with file name of your file.
Example- Code:
# locate <filename> |
Try any/all of
locate fuser lsof find ps -auxwww |
lsof -r 1 <script name>
|
The question is similar to whether a running script can determine its own location. It is not possible in all cases. More at Greg's WIKI.
|
All times are GMT -5. The time now is 06:59 PM. |