I have a faily trivial perl script that does a file copy
Well it works very well when triggered from my browser, but when scheduled by cron I get error
Failed script line is
it fails with die
Error message is
File cannot be copied. at /home/mpcom/public_html/datewk.pl line 12.
I tried to chmod $new_file directory to 777 755 or 644 without success
Any clue with this ?
Thanks
Pierre
Well it works very well when triggered from my browser, but when scheduled by cron I get error
Failed script line is
Code:
copy($image_wanted, $new_file) or die "File cannot be copied.";
Error message is
File cannot be copied. at /home/mpcom/public_html/datewk.pl line 12.
I tried to chmod $new_file directory to 777 755 or 644 without success
Any clue with this ?
Thanks
Pierre
Comment