[GRASS-dev] Merging stdout and stderr
Hamish
hamish_nospam at yahoo.com
Thu Nov 16 02:06:07 EST 2006
Glynn Clements wrote:
> > 2. Might it be a worthwhile idea to include a simple program with GRASS
> > that did this (copies everything from stdin to stdout) so we can be sure
> > what's going on?
>
> I suggest the latter, i.e. write our own mini-"cat" program. It will
> need to explicitly put stdin/stdout into line-buffered mode (pipes are
> block-buffered by default).
see also:
lib/init/echo.c -> $GISBASE/etc/echo
funny that that outputs to stderr..
Hamish
More information about the grass-dev
mailing list