ANother simple approach I use to signal programs running
is to have a directory /me/SIGNALS
Withing that directory I put files(empty) by a particular name.
The running program does an open dir on every loop and check for the
existance of files by name ?*. If this file exists, I unlink it and
continue as if I had caught a signal.
Very simple and limited. But you can signal a program with ANY file
name. Not just the signals supplied by your system.
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 ?
Thanks,
Jose Luis.
--
___ _ ____ ___ __ __
/ _ )(_) / /_ __ / _ \___ _/ /_/ /____ ___
/ _ / / / / // / / ___/ _ `/ __/ __/ _ \/ _ \
/____/_/_/_/\_, / /_/ \_,_/\__/\__/\___/_//_/
/___/
Texas Instruments ASIC Circuit Design Methodlogy Group
Dallas, Texas, 214-480-4455,
b-******@ti.com