[lug] linux/tcsh question
D. Stimits
stimits at idcomm.com
Mon Apr 1 17:29:34 MST 2002
Keith Herold wrote:
>
> this should win the lame question of the year award, but...
>
> I can't redirect input in tcsh. I have some code and it compiles fine and
> prints messages to the terminal. But when I try to redirect it to a file,
> nothing is written to the file (and I think the program may just hang). I
> have tried:
>
> ./gated_LS A > output
> ./gated_LS A >& output
> ./gated_LS A > output & (I know, this one puts it in the background)
>
> as well as wrapping the redirection is a variety of ways (using parentheses,
> quotes, you name it).
>
> System is RH 7.x., tcsh-6.10
The stderr on tcsh is a bit different. I'd recommend "tee", it's one of
those handy-dandy tools that lets you both redirect and view at the same
time:
./gated_LS A |& tee LogFileName.txt
D. Stimits, stimits at idcomm.com
>
> Please enlighten. Thanks ahead of time.
>
> --Keith
>
> *---------------------------------------*
> CELL: 303-817-9686
> HOME: 303-494-4647
> EMAIL: Keith.Herold at colorado.edu
> URL: http://ucsu.colorado.edu/~herold
> Dept. of Linguistics and
> http://www.colorado.edu/ling
> The Center for Spoken Language Research
> http://cslr.colorado.edu
> University of Colorado, Boulder
> Boulder, CO 80302-0594
> USA
> *---------------------------------------*
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list