Hi,
If i understand you correctly , i.e. you have a script that is running and you want to send a user defined kill signal
to this script and then act upon the signal it received .
( I haven't done this , but have a read to see if this helps )-
if you do kill -l ( thats LLLLLL lower case) list you kill signals in AIX . If you look at /usr/include/sys/signal.h
gives you definition of signal)
You have a script that is running in background , your
second script you run and in there it has something like this ,
kill -31 (process id of script running in the background)
so you've sent a user defined signal to your script running in the background .
in that script , you set up a trap i.e.
trap 'run_this' 31
run_this is a function which runs your piece of code i.e.
function run_this {
commands
}
Is this what you are looking for ?
also have a look at this site :-