Skip to main content

Problem running event hook

Posted by cbbs70a on Tue, 04/14/2009

Eric;
I've written to Alex multiple times without a response on this. Maybe you have some insight. After a new user is created, I run an event hook that will do several tasks including taking the new user information from contacts.txt (the company directory) and putting it into MySQL. The problem is that when the event hook runs, contacts.txt has not been written to yet, so I am unable to access the user information to put into MySQL. If I run the event hook by hand, everything works as it should and by that time, contacts.txt has been written to. However, running the script by hand kind of defeats the purpose of event hooks so that is not much of a solution.
Regards;
FSD


Submitted by eeman on Tue, 04/14/2009 Permalink

ok, my initial shoot from the hip thought on how to skin this cat is build your task of things to do out to a script and use the 'at' command to schedule the job a few minutes into the future. By the time the command ran all your files would be built by the interface.