Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-06-2002, 10:07 AM   #1
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
TCSH: redirect stdout and stderr seperately

Old 06-06-2002, 11:59 AM   #2
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
This might not answer you question, but in Bash, > redirects Stdout and 2> redirects stder
Old 06-06-2002, 12:07 PM   #3
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
But for the sake actually answering the question, from the man page.

The shell cannot presently redirect diagnostic output
without also redirecting standard output, but `(command >
output-file) >& error-file' is often an acceptable
workaround. Either output-file or error-file may be
`/dev/tty' to send output to the terminal.
Old 02-07-2016, 03:23 PM   #4
LQ Newbie
Registered: Jan 2004
Location: Idaho
Distribution: RedHat/Mandrake
Posts: 3

Rep: Reputation: 0
csh and tcsh, redirect stdout to one file and stderr to another

Sub shell: # (comand -args ... > OUT) >& ErrorOut


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
redirecting stdout and stderr to a file Avatar33 Programming 4 03-12-2005 07:55 AM
Reopen the stdout and stderr rahul_kulkarni Programming 3 02-21-2005 06:55 AM
how do i redirect stderr to a file? nodger Programming 5 11-28-2004 11:22 AM
shell short question(stdout, stderr) blackzone Programming 4 11-11-2004 09:01 AM
Any one know how to redirect standard error (stderr) to a JetDirect printer? RickMean Linux - General 2 09-03-2004 11:33 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration