[2262] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Please help newbie with prob's after 4.0 install :)

daemon@ATHENA.MIT.EDU (Chip Atkinson)
Fri Nov 1 18:18:57 1996

Date: Fri, 1 Nov 1996 14:20:22 +0700
From: chip@grendel.objinc.com (Chip Atkinson)
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Don't know the rest, but for this one, it's your shell, not xterm.
You need to redirect stderr into the file.  You are probably running bash,
so here's how you'd do it there:

some_command 2>&1 | more

This command redirects stderr into stdout, which can then be piped through
more

some_command 2> errs.out 

This command redirects stderr into a file named errs.out.  Note that stdout
still comes to the screen.

Chip

>>>>
 
: heres a few of the problems, i would've redir'd stdout but i can't get it
: to work under an xterm ie mxp > /dosc/errs.txt doesn't work, it creates
: errs.txt but the text come to the screen :( so heres abbreviated versions
: :)
<<<<


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post