Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 210Reputation: 210Reputation: 210
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:

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

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

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

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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, 09:55 PM   #4
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
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.


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 04:34 PM
syslogd and stderr slzckboy Linux - General 4 01-16-2006 04:45 PM
shell short question(stdout, stderr) blackzone Programming 4 11-11-2004 09:01 AM
redirecting stderr nodger Programming 2 03-11-2004 10:58 AM
stderr is not a tty where are you? davidschob Slackware 6 10-31-2003 10:38 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:04 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