query: How to find the location of the script that is being executed?
positive_passages.docid: 4162
positive_passages.text: How can I get the source directory of a Bash script from within the script itself?
negative_passages.docid: 2267
negative_passages.text: How to detect if a script is being sourced
negative_passages.docid: 25351
negative_passages.text: How do I get the path of the Python script I am running in?
negative_passages.docid: 65449
negative_passages.text: How to get the pid of the last executed command in shell script?
negative_passages.docid: 48720
negative_passages.text: Get the name of the currently executing method
negative_passages.docid: 64160
negative_passages.text: Finding where something was imported from in python
negative_passages.docid: 20082
negative_passages.text: Does the shebang determine the shell which runs the script?
negative_passages.docid: 25742
negative_passages.text: How to debug a bash script?
negative_passages.docid: 104446
negative_passages.text: Find location of sourced shell script
negative_passages.docid: 13985
negative_passages.text: How to determine which process is creating a file?
negative_passages.docid: 26048
negative_passages.text: How do I know the script file name in a Bash script?
negative_passages.docid: 158427
negative_passages.text: Is it possible to detect file location when running it?
negative_passages.docid: 45253
negative_passages.text: How to recognize whether a script is running on a tty?
negative_passages.docid: 34456
negative_passages.text: How can a script check if it's being run as root?
negative_passages.docid: 101843
negative_passages.text: Complete view of where the PATH variable is set in bash
negative_passages.docid: 68779
negative_passages.text: How to know the path of the running script in Python?
negative_passages.docid: 114201
negative_passages.text: Is it possible to identify what the parent program/app is from a running process?