Page 1 of 1

Back with problem - CRON !

Posted: Thu Mar 12, 2009 8:49 am
by jito
Hi All,

I am running a script using cron, that creates a directory, if doesn't exists. That script is running fine from CLI and browsers.
But while running it from cron i always get the error :

Warning: mkdir(): No such file or directory in /usr/www/users/*****/*****/genera
l.php on line 91

Warning: chmod(): No such file or directory in /usr/www/users/*****/*****/genera
l.php on line 93

I tried with absolute and relative path to that directory.

Please help me before i get bald.

Thanks.

Re: Back with problem - CRON !

Posted: Thu Mar 12, 2009 9:59 am
by pickle
Usually mkdir() and chmod() have the path to the directory/file you're affecting right in the error message. Since it's not there in your error messages, your code probably isn't determining the directory path properly.

Re: Back with problem - CRON !

Posted: Thu Mar 12, 2009 10:38 am
by jito
solved! Thanks for your time.