Interacting with terminal (text) or x server

From: Clark Thomas (clark_at_ncc1701a.com.br)
Date: 06/25/04

  • Next message: TwoTired: "Re: Distro with Gatos for Radeon or R128?"
    Date: 25 Jun 2004 14:17:46 -0700
    
    

    I need to develop a daemon (service) that must verify constantly
    a serial device and interact with the currently logged user, don't
    matter the current environment loaded (text mode or graphical - X Server).

    Saying about the creation procedure, I'm thinking to create a front-end
    for each mode: text and graphical. This front-end will show to the user,
    the current status of the device. There is a best way to do this? If
    not, how would I do the communication between the (2) applications
    (daemon and front-end)?

    One more question, how I know if the X server is runnning?

    Excuse me for my english ...

    Thank you!!

    (Now the same question in portuguese)

    Estou querendo criar um daemon que deve verificar constantemente um
    dispositivo serial e interagir c/ o usr, ñ importando o ambiente
    aonde ele c encontra (terminal ou no ambiente X).

    Qto ao procedimento p/ criação, estava pensando criar um front-end
    p/ o terminal e outro p/ rodar no servidor X (modo gráfico). Esse
    front-end iria mostrar o estado atual do dispositivo. Existe alguma
    alternativa melhor p/ fazer isso? Caso não, c/o eu faria p/ a troca
    d infos entre os 2 aplics (daemon e o front-end)?

    Uma outra pergunta + simples, c/o eu detecto c o servidor X está
    rodando?

    Valeu!


  • Next message: TwoTired: "Re: Distro with Gatos for Radeon or R128?"

    Relevant Pages

    • Interacting with terminal (text) or x server
      ... I need to develop a daemon that must verify constantly ... a serial device and interact with the currently logged user, ... I'm thinking to create a front-end ...
      (comp.os.linux.development.system)
    • Re: Interacting with terminal (text) or x server
      ... > I need to develop a daemon that must verify constantly ... > a serial device and interact with the currently logged user, ... > Saying about the creation procedure, I'm thinking to create a front-end ... Just make the daemon listen on a TCP, UDP, or UNIX socket, ...
      (comp.os.linux.x)
    • Re: Interacting with terminal (text) or x server
      ... > I need to develop a daemon that must verify constantly ... > a serial device and interact with the currently logged user, ... > Saying about the creation procedure, I'm thinking to create a front-end ... Just make the daemon listen on a TCP, UDP, or UNIX socket, ...
      (comp.os.linux.development.system)
    • Re: Session management in Linux (long)
      ... The daemon is the business logic of our application. ... This is where knowing what session ... If you intend to have your client operate in both text mode and graphical ... The daemon will never interact with a user/graphics ...
      (comp.os.linux.development.apps)
    • Re: Running perl program at startup
      ... not interactive), i found the way to run the script as a daemon, but i ... Interact on that TTY with the daemon... ... while ($cont) { ... print localtime(). ...
      (perl.beginners)