Reply To: Cl_archive Hangs

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Cl_archive Hangs Reply To: Cl_archive Hangs

#57463
Charlie Bursell
Participant

    There is a Bullentin concerning this subject on another part of this board.  The subject may throw you as it alludes to multi-thread but it concerns Tcl exec calls and Windows 2003.

    I am not sure if it is Tcl or W2003 but there seems to be an issue with STDOUT and STDERR.

    The work around is to *ALWAYS” redirect the output of any exec call to a file.  If I don’t need the output, I redirect it to NULL (nul:) like:

        exec somecommand > nul:

    If I need the output, I redirect to a work file then read that.  Like:

         exec simecommand > .mywork

         set data [read_file -nonewline .mywork]

          file delete .mywork

    I put a dot (.) in front just to make it a hidden file.

    Hopefully it will be fixed when we go to Tcl 8.4.  That happens with the release of CL 5.4.1 in June.

    Charlie