chan configure stdout -buffering none puts -nonewline stdout "1 hello on stdout with unix newline\n" flush stdout puts -nonewline stdout "2 hello on stdout with crlf newline\r\n" flush stdout puts -nonewline stdout "exiting with exitcode 1" flush stdout exit 1