access a file in python that is created from SunGridEngine -


i have python script, submits job sge (sun grid engine). when job done want access output file, generated sge job. see "ls" in directory file existing , job done, python needs 20-30 seconds access file...

is there way detect new created files faster ??

my problem differ between "need time access file" or "file not existing"

i tried: os.path.exist(path) os.access(path,os.r_ok)

does not solve problem =(

created sleep timer checks every second access.. after time (~15s), access granted , file usable!


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -