LinuxQuestions.org
Visit Jeremy's Blog.
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, 11:07 AM   #1
ugenn
Member
 
Registered: Apr 2002
Posts: 549

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


how?
 
Old 06-06-2002, 12:59 PM   #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, 01: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, 04:23 PM   #4
DougRoyer
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
 
  


Reply


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 08:55 AM
Reopen the stdout and stderr rahul_kulkarni Programming 3 02-21-2005 07:55 AM
how do i redirect stderr to a file? nodger Programming 5 11-28-2004 12:22 PM
shell short question(stdout, stderr) blackzone Programming 4 11-11-2004 10:01 AM
Any one know how to redirect standard error (stderr) to a JetDirect printer? RickMean Linux - General 2 09-03-2004 12:33 PM

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

All times are GMT -5. The time now is 07:21 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration