I have a script that open files to analize them. When it runs from shell everything works fine but, as cron job deletes the file before open it so when it tries to open it the script fails. Is there any technique to get the same behavior from cron as from the shell?