I have seen this code in a few places and my understanding is they are using it to determine what app called the script.
I have a script that is called by two different applications and what it to do one thing when called by one and something else when called by the other. How do I determine what app is calling the script? If my example is correct how would I determine the $EXAMPLE and is every running application assigned a variable name?
I thought about just writing a separate script but the script is caching some info from one app and then echoing out to the other app when it asks for it so I think it should stay as one script.
Any help or pointing me in the correct direction would be great.
Thank you,
Jason