Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1728

Detect if script is started from "global"?

$
0
0
Is it possible to detect inside a script if it was started from the command global rather than directly from the command line?
I already checked all sorts of system variables, functions etc. but could not figure out how this could be achived.

Background: I want to execute the pause command, if script is started from global, thus iterating over some directories. I do not want to pause if started from the command line without global.

Viewing all articles
Browse latest Browse all 1728

Trending Articles