LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 06-22-2007, 04:28 PM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 208Reputation: 208Reputation: 208
Turbo C Shell: Stderr forwarding


Hi, I've googled a few tutorials, but still can't figure out how to forward stdout/stderr separately on tcsh.

I would like to do this:

Code:
rm -rf ./* 2>/dev/null &
but in tcsh, not sh.

Thanks in advance!
- Jameson
 
Old 06-22-2007, 04:47 PM   #2
radoulov
Member
 
Registered: Apr 2007
Location: Milano, Italia/Варна, България
Distribution: Ubuntu, Open SUSE
Posts: 212

Rep: Reputation: 35
Code:
(rm -r ./*>`tty`)>&/dev/null
With -f you don't get any output ...
 
Old 06-22-2007, 10:28 PM   #3
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 208Reputation: 208Reputation: 208
Right you are, don't want the -f. Man, that is pretty ugly looking. Tcsh blows, apparently. Am not using it by choice, though. Thanks for the help
 
Old 06-22-2007, 10:55 PM   #4
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 41
The "t" in tcsh stands for TENEX, not "turbo" (that's a silly word that only Borland uses -- well, Borland and Porsche). But no, tcsh does not support much in the way of file descriptor redirection, at least, not in the way that bash does, and not that I've ever been able to find.
 
  


Reply

Tags
console, forwarding, input, output, redirection, stderr, stdout, tcsh


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script - stdout & stderr to terminal and file jantman Linux - Software 1 12-07-2006 05:34 PM
syslogd and stderr slzckboy Linux - General 4 01-16-2006 05:45 PM
shell short question(stdout, stderr) blackzone Programming 4 11-11-2004 10:01 AM
redirecting stderr nodger Programming 2 03-11-2004 11:58 AM
stderr is not a tty where are you? davidschob Slackware 6 10-31-2003 11:38 AM


All times are GMT -5. The time now is 06:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration