Re: How to capture or redirect /dev/tty

Góra strony
Załączniki:
Wiadomość jako email
+ (text/plain)
Delete this message
Reply to this message
Autor: vodhner@cox.net
Data:  
Dla: Main PLUG discussion list
Temat: Re: How to capture or redirect /dev/tty
(I thought I'd try a re-post on this, since previous attempt was probably at a bad time.)

After spitting out a bunch of diagnostics to /dev/tty, a program freezes the whole system so that no keyboard or mouse actions have any effect. How could I capture those diagnostic messages to disk in real time, before the freeze?

I thought I'd use the "screen" command and turn on logging, but "screen" buffers its output to disk so the final 10 lines of warning messages are lost. I solved that problem, this time, by re-running the test and transcribing those last 10 lines from the frozen screen onto paper.

Is there a way to force /dev/tty to disk, unbuffered? Could I munge the "controlling terminal" identity so output goes to disk?

Or, is there some way I could open up an ssh from another computer with logging turned on there, and then tell the job it was running from that PTY?

Just curious . . .

Vic

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss