LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

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


how?
 
Old 06-06-2002, 11:59 AM   #2
Rashkae
Member
 
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
Rashkae
Member
 
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
DougRoyer
LQ Newbie
 
Registered: Jan 2004
Location: Idaho
Distribution: RedHat/Mandrake
Posts: 3

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

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:06 AM.

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