Homepage › Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Cl_archive Hangs › Reply To: Cl_archive Hangs
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