This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Console anyone ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]