Re: alarm handler bug on OWS 7.22?
Posted in 1998
ProzessDV wrote: > I've written an event handler and set the onconfig parameter > correctly as I can see from online.log-file. I also can see from > online.log, that - with some errors (or events) - my event handler > is called by: > > /bin/shell -c event-handler ... > > This works fine. But when it is called this way: > > /bin/shell /bin/shell -c event-handler ... > > it does not work. Not very surprising; this requests the shell to interpret its binary as a shell script -- which won't usually work. I suppose you could get the following to work, but you'd have to be excruciatingly careful if any of the inner set of arguments contained spaces. /bin/shell -c '/bin/shell -c "event-handler ..."' > Both calls can be seen in online.log but only the first makes > my event handler work. Why? When you say both calls can be seen, is that with or without your version specified? What have you specified in your ONCONFIG file. > Is this difference in calling a bug in informix? It may be; it depends on why it is using the double-shell notation. On average, I'm more inclined to suspect your configuration, but a final choice cannot be made without seeing the details. -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN #include <disclaimer.h>