This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Console anyone ?
- From: Alexander Gottwald <Alexander dot Gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Cc: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- Date: Sat, 24 May 2003 19:20:47 +0200 (MEST)
- Subject: Re: Console anyone ?
- Reply-to: cygwin-xfree at cygwin dot com
Igor Pechtchanski wrote:
> For those who are interested, I've created the (suitably edited) strace
> output files for two commands:
>
> 1) bash -c "exec /usr/bin/X11/xterm -display localhost:0 >/dev/null 2>&1 &
> 2) bash -c "exec /usr/bin/X11/xterm -display localhost:0 2>&1 >/dev/null &
>
> Both xterms then had the "net help" command run in them, followed by
> "exit".
>
> The diffs between the two should be informative. Unfortunately, I don't
> have the knowledge of the code necessary to spot the significance of the
> differences, and no time right now for the learning curve. Hope this
> helps someone else track this down.
The difference between the two lines is
1) redirects stdout to /dev/null and stderr to stdout
2) redirects stderr to stdout and stdout to /dev/null (which also redirects
stderr to /dev/null)
bye
ago
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723