Okay list maybe you can help me with this. I am debugging one of my
programs. I run the program and interact with it and an error message
appears and quickly goes away. I don't have access to the source code so
I have to try and capture the screen output and see the error. It
happens too fast to pause the screen. I have tried to use the tee
command but the program hangs when it goes to the next screen for input.
I only get the opening screen and the my input for the menu selection. 

I also tried to start another shell by doing an sh -iv |& tee /tmp/log

and on a second terminal session did a tail -f /tmp/log

That sort of worked but I only got the first screen and nothing after
that. 

So I want to hack my session in essence. These are all console
(character based) sessions and it is a program expecting input not just
an ls or script that runs. I remember in my first SCO class where we
created a terminal as a printer but that was years ago and I don't have
that code. I figured I could hack the console to write the output to a
file besides the STDOUT and then I could review that file for my error.
Maybe I am wrong and I will have to recompile the code with a debug
portion.

Just to recap, I tried
sh -iv |& tee /tmp/log with tail -f /tmp/log
run-my-program | tee /tmp/log
run-my-program | tee -a /tmp/log
run-my-program 2>&1

None of these worked. 

This is a SCO 5.0.6 system and it is a COBOL program which is run
through a runtime.

TIA




John J. Boris, Sr.

"Remember! That light at the end of the tunnel
Just might be the headlight of an oncoming train!"

_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to