tcl-websh-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From (David N. Welton)
Subject Re: cvs commit: tcl-websh/src/generic weboutint.c
Date Tue, 26 Nov 2002 18:51:05 GMT writes:

Glad to see it worked.

>   +    ## make a temp file with a test script
>   +    set curTim [clock seconds]
>   +    set fileName $curTim-[pid]-evalfile.tcl
>   +    set fileId [open $fileName "w"]

Just FYI, there is a tcltest command to make temporary files that will
automatically be cleaned up (even if the script crashes halfway
through, for instance):

       tcltest::makeFile contents name ?directory?

although in this case it's really not worth bothering.

David N. Welton
Free Software:
   Apache Tcl:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message