Re: more errors

Darren Eckhoff (eckhoffdl@ingalls.com)
Mon, 14 Jun 1999 19:26:14 +0000


James wrote:
> 
> On 13 Jun 1999, Doug Alcorn wrote:
> 
> # you can see what is happening.  Alternatively, you can 'startx >
> # startx.out 2>&1' and then look at that file after you get started up
> 
> it's
> 
> startx 2>&1 startx.out
> 
> isn't it? I can never remember the '2>&1' bit, but what you typed looks
> as though it redirects stdout from startx into the file startx.out, then
> redirects that to stdout and stderr (which won't work because files don't
> produce output when used like that).
> 
> --
> Windows, you can't live with it, you can't live without it... oh wait, you can!
> Root@kermit.globalnet.co.uk                http://www.penguinpowered.com/~a_out
> 
> --
>    WWW:   http://www.afterstep.org/
>    FTP:   ftp://ftp.afterstep.org/
>    MAIL:  http://www.calderasystems.com/linuxcenter/forums/afterstep.html


NO, he had it right: startx > startx.out 2>&1

The way it reads is, redirect stdout to file startx.out and redirect
stderr to the same as stdout.  I use it often.


Darren Eckhoff

--
   WWW:   http://www.afterstep.org/
   FTP:   ftp://ftp.afterstep.org/
   MAIL:  http://www.calderasystems.com/linuxcenter/forums/afterstep.html