Nico Grubert <nicogrubert at gmail.com> 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?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4