Results 1 to 2 of 2
My hardware is the FriendlyArm mini2440 Samsung board.
I run our main application from init.d/rcS.
It uses printf's to display continuous program debug information that can
be seen on the ...
- 06-04-2010 #1Just Joined!
- Join Date
- Nov 2005
- Posts
- 3
redirect console to telnet
My hardware is the FriendlyArm mini2440 Samsung board.
I run our main application from init.d/rcS.
It uses printf's to display continuous program debug information that can
be seen on the serial ttySAC2 console.
I would like to be able to remotely view this information by a telnet
connection when needed.
What is the best way to accomplish this?
The telnet user can possibly activate some script or program.
I saw there is a ttysnoop program that I could not get to compile.
There must be a simpler way.
There must be several ways.
Instead of using printf I could do something else.
I do not want to use a normal log file to the flash file system.
I had thought of using a ram file in /var directory but it would complicate matters as I would need to limit its size and the telnet user needs to view the program's printfs in a real time fashion.
Thanks
- 06-07-2010 #2
Launch your application in a GNU screen session (make screen multi-user to allow non-root access). This can be tricky when the application starts at boot time. I've done it by launching an Xvfb as a host for an xterm, in which to run screen.
--- rod.Stuff happens. Then stays happened.


Reply With Quote