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.
My program is receiving a lot of signal 20 (SIGCHLD), but has no children. When I run the program on a different box, I don't receive any signals. I am trying to find out where the signals originate from. I can block the signals, but then I will never know what causes it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.