Version 3 of stderr

Updated 2001-11-28 15:57:14

stderr is one of the stdio output files opened - applications and functions tend to use it for the output of error messages.

[Explain common idioms for management of stderr from subprocesses.]

bgexec

[ exec conventions]

There are a few ways to write to stderr:

  • puts stderr "msg"
  • [how else]

Often people ask how to open a pipeline to a command and read both its stdout and stderr.

One recent example of how to do this was:

 set fd1 [open "|somecmd |& cat" "r"]

(if your system has a command named cat in the default path).


See also stdout, stdin, stdio


What category should this page be in?