Re: Using signals as a event driven framework

From: jose luis fernandez diaz (jose_luis_fdez_diaz_news_at_yahoo.es)
Date: 05/03/04


Date: 3 May 2004 07:27:39 -0700

This solution forces to write a C client program. In this case a
prefer to use a CORBA communication framework. Anyway, is there
another way to comunicate directly from the shell to a background
proccess without a client program ?

Thanks,
Jose Luis.

Nils O. Selåsdal <NOS@Utel.no> wrote in message news:<pan.2004.05.03.09.45.55.700859@Utel.no>...
> On Mon, 03 May 2004 02:37:03 -0700, jose luis fernandez diaz wrote:
>
> > Hi,
> >
> > I have a C program running in background in UNIX. From a shell script
> > I want to notify it some events. The easiest way to do it is through
> > signals, but it is not correct because signal are not a event drivent
> > framework. Can anyone give me other straightforward solution ?
> Signals can du fine, and you can very well make it event driven.
> However signals have ofcourse limitations, you can only use a few of them,
> and it's hard to pass additional data.
> A common approach is to use unix sockets, see e.g. and create a little
> utility that can communicate to the "server" for use in e.g. shell
> scripts.
> see e.g. http://www.ecst.csuchico.edu/~beej/guide/ipc/usock.html



Relevant Pages

  • Re: Using signals as a event driven framework
    ... From a shell script ... but it is not correct because signal are not a event drivent ... Signals can du fine, and you can very well make it event driven. ... A common approach is to use unix sockets, see e.g. and create a little ...
    (comp.lang.c)
  • Re: Using signals as a event driven framework
    ... From a shell script ... but it is not correct because signal are not a event drivent ... Signals can du fine, and you can very well make it event driven. ... A common approach is to use unix sockets, see e.g. and create a little ...
    (comp.unix.programmer)
  • Re: Using signals as a event driven framework
    ... This solution forces to write a C client program. ... From a shell script ... but it is not correct because signal are not a event drivent ... > Signals can du fine, and you can very well make it event driven. ...
    (comp.unix.programmer)
  • Re: Using signals as a event driven framework
    ... ANother simple approach I use to signal programs running ... Not just the signals supplied by your system. ... jose luis fernandez diaz wrote: ... but it is not correct because signal are not a event drivent ...
    (comp.lang.c)
  • Re: Using signals as a event driven framework
    ... ANother simple approach I use to signal programs running ... Not just the signals supplied by your system. ... jose luis fernandez diaz wrote: ... but it is not correct because signal are not a event drivent ...
    (comp.unix.programmer)