[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Set variable to query result at start-up?


On Thu, 14 Feb 2008, Davor Ocelic wrote:

I've determined this won't work, because the database connection isn't established at the time I need it to be in order to run the query. I really have to do this inside the catalog.cfg somehow, and after the point where the Database directives have been processed.

If IC Jobs are mimicking Unix cron in a way, how about adding support for special time specification in style of Unix cron, but instead of @reboot like in Cron, we'd call it @startup and/or @reconfig. It would run in catalog context, after catalog is configured, and once for @startup, or each time for @reconfig.

That sounds like it could work, as long as it happened before forking any child processes so that the changes were guaranteed to happen before any processing happens.

Jon

--
Jon Jensen
End Point Corporation
http://www.endpoint.com/
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.