Hi All,
Trying to run stata jobs from the command line (using cygwin, a linux-like interface). The problem I'm running into is that Stata doesn't appear to be return a non-zero exit code when problems arise.
Current Code:
stata="/cygdrive/c/Program Files (x86)/Stata12/StataMP-64.exe"
file="my_dofile.do"
"$stata" -e do $file || exit 1
But even if I (intentionally) introduce bugs in the dofile, it runs cleanly from the command-line perspective.
There a flag to get it to raise errors?
Thanks!
Trying to run stata jobs from the command line (using cygwin, a linux-like interface). The problem I'm running into is that Stata doesn't appear to be return a non-zero exit code when problems arise.
Current Code:
stata="/cygdrive/c/Program Files (x86)/Stata12/StataMP-64.exe"
file="my_dofile.do"
"$stata" -e do $file || exit 1
But even if I (intentionally) introduce bugs in the dofile, it runs cleanly from the command-line perspective.
There a flag to get it to raise errors?
Thanks!
Comment