Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Newbie theNbomr's Avatar
    Join Date
    May 2007
    Location
    BC Canada
    Posts
    150
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...