Results 1 to 3 of 3

Thread: Retrieving standart output from a running process

  1. #1

    Default Retrieving standart output from a running process

    Hi there, I need to catch the output from a proccess launched during the boot sequence by initd. I need to redirect the standart output to the current shell (a telnet connection embeded on my QT software).

    Thanks in advance for your time.

  2. #2
    Join Date
    Jul 2008
    Location
    Voorhout, Netherlands
    Posts
    262

    Default Re: Retrieving standart output from a running process

    jlgm wrote:
    > Hi there, I need to catch the output from a proccess launched during the
    > boot sequence by initd. I need to redirect the standart output to the
    > current shell (a telnet connection embeded on my QT software).
    >
    > Thanks in advance for your time.


    A process that has been started without controlling tty (like those by initd)
    cannot be connected to a tty afterwards, but most init processes write to syslog,
    so your best bet is the syslog-ng config file to direct the output of this
    process to a tty where you can read it.

    Theo

  3. #3

    Red face Re: Retrieving standart output from a running process

    Quote Originally Posted by LittleRedRooster View Post
    A process that has been started without controlling tty (like those by initd)
    cannot be connected to a tty afterwards, but most init processes write to syslog,
    so your best bet is the syslog-ng config file to direct the output of this
    process to a tty where you can read it.

    Theo
    Thanks for the help, but in my situation this is not a chance. My application opens an embeded telnet connection with the machine which host the process. I log as root in the telnet tty, so I have no rights problem but the host system is an linux embeded machine so I can not modify any file on it (for guarantee purposes) and that system does not use any syslog like stuff that I can read. Its a minimal system.

    Thanks again LittleRedRooster.

    PD: Sorry for my poor english

Posting Permissions

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