Can I remotely monitor printf results of a C program?

Posted by Mota on Super User See other posts from Super User or by Mota
Published on 2012-11-01T13:03:11Z Indexed on 2012/11/24 23:07 UTC
Read the original article Hit count: 202

Filed under:
|
|
|
|

I have a long running C program in which I've started from the Terminal.app using:

gdb program_name
gdb run

I'm using many printf statements to monitor the progress of the program. Unfortunately, the screen of the computer has been frozen since yesterday, but the process is still running. My question is, can I watch the progress of the program (i.e. the results of the printf statements) remotely?

I'm not that familiar with the terminal, but I know how to ssh and do some simple terminal tasks. The OS of the machine with the frozen screen is Mac OS 10.6.

© Super User or respective owner

Related posts about osx

Related posts about ssh