Nico Grubert <[EMAIL PROTECTED]> writes:
> while 'transfer.lock' in os.listdir( WINDOWS_SHARE ):
>      print "Busy, please wait..."
>      time.sleep(10)
> 
> f = open(WINDOWS_SHARE + '/myfile', 'w')

But there's a race condition, and don't you have to make your own lock
before writing myfile, so that the cron job won't clobber it or miss it?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to