Is there a way to test whether Stata is operating in batch mode (that is, using the -b command line option running from a Unix prompt) inside a do-file? As opposed to interactive mode within the GUI.
In particular, I want to only run graph commands if the do-file is being run interactively, though more generally I could see being able to query for batch mode would be useful.
I have already looked at the variables reported with the "set" command and that does not seem to contain info about batch mode versus interactive mode.
In particular, I want to only run graph commands if the do-file is being run interactively, though more generally I could see being able to query for batch mode would be useful.
I have already looked at the variables reported with the "set" command and that does not seem to contain info about batch mode versus interactive mode.
Comment