Run agent when database opens

Is it possible to set an agent to run automatically whenever a database is opened. I want to track when users open my database so when the database is opened the agent should run and create a document which stores their username and login date and time.

Subject: Run agent when database opens

Hi,

you can code whatever you want in the Database Script Postopen event.

regards Bernhard

Subject: RE: Run agent when database opens

I think you can do this without an agent and just put the code in the postopen event of the database script.

Subject: RE: Run agent when database opens

That’s exactly what I need. Thanks for your help.

Subject: RE: Run agent when database opens

FYI: If the user gets a doc link from somebody and click on that the postOpen event of the dB does not trigger, although correct me if I am wrong).

John

Subject: RE: Run agent when database opens

This only seems to work when databases are opened from the Notes client. Unfortunately my database is also web-enabled and this does not seem to trigger the postopen event in the database script. Is there another way around this?

Subject: RE: Run agent when database opens

so for the web put in the webqueryopen script.