# Prints the string in a file
puts $chan stderr "$timestamp - Running test: $test"
# Prints the string on a console
puts "$timestamp - Running test: $test"
putsの出力を画面とログファイルに同時に送信する方法はありますか?現在、私はこれを達成するためにスクリプトの中で上記の2つの行を次々に持っています。tclスクリプトでは、putsを使ってコンソールとファイルに同時に文字列を書き込むことはできますか?
また、tclに他の解決策がありますか?