I have an application running on a server, started from the command line. From time to time, I need to connect to the server via SSH and get the output messages written to stdout from the application. Is there a way to read/sniff/catch the messages on that terminal? The server runs Fedora 12.
To clarify a bit more. I have admin access to the server, but I cannot stop the running application because it is in critical environment. It is the end user who starts the application from a terminal. Via ssh I have to read messages in the terminal whenever user sees strange behaviors. It is a graphical application. I may build a script to run the application with screen, this means I have to change the "launcher" but there are some servers not always accessible for security reason from outside the LAN. Updating is complicate. My question is, if there is an application running, is there any way to catch its output in the terminal without stopping it and rerun under screen or whatever?