[Zope] Creating a file in the filesystem?

Joel Burton joel@joelburton.com
Mon, 4 Mar 2002 15:46:29 -0500 (EST)


On Mon, 4 Mar 2002, j2 wrote:

> I would like to create a semaphore file in the filesystem (/tmp/restart
> maybe?) and then poll that file from a cron job to see if a certain daemon
> should be restarted.  But, how on earth do one create such an object?

Write an ExternalMethod that does this in Python. Very straightforward.
Can't do it in a PythonScript since they access the filesystem.

-- 

Joel BURTON  |  joel@joelburton.com  |  joelburton.com  |  aim: wjoelburton
Independent Knowledge Management Consultant