LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Turbo C Shell: Stderr forwarding (https://www.linuxquestions.org/questions/programming-9/turbo-c-shell-stderr-forwarding-563801/)

jhwilliams 06-22-2007 03:28 PM

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

radoulov 06-22-2007 03:47 PM

Code:

(rm -r ./*>`tty`)>&/dev/null
With -f you don't get any output ...

jhwilliams 06-22-2007 09:28 PM

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

taylor_venable 06-22-2007 09:55 PM

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.


All times are GMT -5. The time now is 03:07 AM.