[lug] linux/tcsh question
Keith Herold
Herold at Colorado.EDU
Mon Apr 1 17:42:27 MST 2002
And to D. Stimits:
I tried both your suggestions; tee did not work, and bash does the same
thing (or doesn't do anything, I guess).
The gated_LS program is a C program I wrote for a class assignment. All of
the printing is using printf. The only argument is the name for the
particular router of interest (we are building an LSPF protocol). It is
*really* a pain to try and figure out what is happening by opening 6
different ssh windows,starting a router on each window, hitting ctrl-c after
a minute or so, and then trying to eyeball where everything is.
Any other ideas?
--Keith
> -----Original Message-----
> From: lug-admin at lug.boulder.co.us [mailto:lug-admin at lug.boulder.co.us]On
> Behalf Of Riggs, Rob
> Sent: Monday, April 01, 2002 5:25 PM
> To: 'lug at lug.boulder.co.us'
> Subject: RE: [lug] linux/tcsh question
>
>
> Have you tried "echo foo > output" to see if it's really the shell and not
> gated_LS's interaction with the shell that is the problem? (And
> my guess is
> >& is the one you want here.) Or tried bash?
>
> Some applications get unhappy when stdin, stdout or stderr is not a TTY.
>
> -Rob
>
> -----Original Message-----
> From: Keith Herold [mailto:Herold at Colorado.EDU]
> Sent: Monday, April 01, 2002 5:13 PM
> To: lug at lug.boulder.co.us
> Subject: [lug] linux/tcsh question
>
>
> 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
>
> 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
> _______________________________________________
> 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