I have an automated script - I mean, it runs every 10 minutes by a cronjob. The weird thing is: The file is always found and runs through it when I start the script by hand. But it gives me a lot of troubles when it runs by cron job.
these are the rights of the files:
-rw-r--r-- 1 dataloader users 181 Dec 19 12:37 Foo.after -rwxr-xr-x 1 dataloader users 26098 Feb 16 20:56 loader.py
this is an abstract of loader.py where it checks for Foo.after:
if os.path.exists(self.customer+'.after'):
print 'customer file exists'
f = open(self.customer+'.after')