Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: executing commands on exit


From   Partho Sarkar <[email protected]>
To   [email protected]
Subject   Re: st: Re: executing commands on exit
Date   Tue, 13 Sep 2011 20:49:40 +0530

I wrote this, and then noticed several other replies, but am still
sending it on just in case it adds anything:

Have a look at this:
 http://www.stata.com/statalist/archive/2010-12/msg00113.html
 Here you can find the sketch of the code which
 will do what you want.  As for closing the log, I don't think you
need  worry, as iI am quite sure Stata  automatically closes it on
exit without any mishap!

P.S.

>
> On Tue, Sep 13, 2011 at 6:41 PM, A. Berâ <[email protected]> wrote:
>>
>> an additional question is, when I put the following lines in
>> profile.do, I don't see a message on Stata screen about the time log
>> file was opened etc. The log file is created but without date time and
>> directory info.
>>
>> .cd "D:\Documents and Settings\My Documents\work"
>>
>> .log using temp.log, name(temp) replace
>>
>> a.b.
>>
>>
>>
>> On Tue, Sep 13, 2011 at 3:54 PM, A. Berâ <[email protected]> wrote:
>> > Dear Stata Users,
>> >
>> >    How can I make Stata open a log file (with a name say temp)
>> > automatically when it starts and close it automatically when I exit
>> > Stata?
>> >
>> > I know I can put
>> >
>> > .log using temp.log, name(temp)
>> >
>> > in profile.do, but I don't know how to close it automatically when I
>> > exit Stata. Thanks.
>> >
>> > --
>> > abdullah berâ
>> >
>>
>>
>>
>> --
>> abdullah berâ
>>
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/statalist/faq
>> *   http://www.ats.ucla.edu/stat/stata/
>
>

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index