Let's take my real code into consideration:
The log file will be located on /home directory and be named /home/combine1.log
The log file will be located on /root directory and be named /root/combine1.log
Obviously, it'd better to be independent from where I execute the batch command in order to make the code "portable".
And how do I avoid overriding the log file? (If executing it multiple time)
Another one: since do file invoke ado file, how to record the ado file's log inside do file?
Please give some general guidance on log issue in batch mode.
Thanks a lot!!
Code:
[root@www home]#/usr/local/stata14/stata-mp -e do /home/combine1.do "$now" "$now2"
Code:
[root@www ~]# /usr/local/stata14/stata-mp -e do /home/combine1.do "$now" "$now2"
Obviously, it'd better to be independent from where I execute the batch command in order to make the code "portable".
And how do I avoid overriding the log file? (If executing it multiple time)
Another one: since do file invoke ado file, how to record the ado file's log inside do file?
Please give some general guidance on log issue in batch mode.
Thanks a lot!!
Comment