I have been working on tuxedo for the past two months, and there we have this queue admin utility called qmadmin, which if it recieves a signal 9 , 15 ,1,2,6...( when it is open )it makes the qmadmin hung up and no processing of the queue is carried out.
From a Unix perspective when I asked one of the system admin , he told me the following :
"Basically run a C wrapper (or shell???) program around the qmadmin command that catches any shell disconnect/kill signal...then within that function it shud disconnect/exit the qmadmin session gracefully."
As I am very limited on C , what are the options open to me to actually make this happen through a shell script.
We have to do a quit in the qmadmin utility to gracefully shut it down.
If trap , then how to make a wrapper with use of trap command and how to send a quit to the semi-hung qmadmin command in order to gracefully shut it down.
Thanks to all nice samaritans.
From a Unix perspective when I asked one of the system admin , he told me the following :
"Basically run a C wrapper (or shell???) program around the qmadmin command that catches any shell disconnect/kill signal...then within that function it shud disconnect/exit the qmadmin session gracefully."
As I am very limited on C , what are the options open to me to actually make this happen through a shell script.
We have to do a quit in the qmadmin utility to gracefully shut it down.
If trap , then how to make a wrapper with use of trap command and how to send a quit to the semi-hung qmadmin command in order to gracefully shut it down.
Thanks to all nice samaritans.