Hello.
I'm new with perl and DA, so i need a bit of help.
My problem is that I can run a perl script from my browser without any problem, it opens a file, reads it and continues... but if I try to run the same script from a cron job, the script begins to execute but it wont open the file.
The cron daemon send me a mail saying:
Cannot open ../Aniversaris/subscribers.txt: No such file or directory at /home/stuff/domains/host.com/public_html/cgi-bin/dsendhtml.pl line 19.
Script is in the cgi-bin directory with 755 permision and the file and directory I want to read have 755.
Is cron jobs using diferent permisions?
Why can I run the script from cron jobs?
Thank you very much.
I'm new with perl and DA, so i need a bit of help.
My problem is that I can run a perl script from my browser without any problem, it opens a file, reads it and continues... but if I try to run the same script from a cron job, the script begins to execute but it wont open the file.
The cron daemon send me a mail saying:
Cannot open ../Aniversaris/subscribers.txt: No such file or directory at /home/stuff/domains/host.com/public_html/cgi-bin/dsendhtml.pl line 19.
Script is in the cgi-bin directory with 755 permision and the file and directory I want to read have 755.
Is cron jobs using diferent permisions?
Why can I run the script from cron jobs?
Thank you very much.