Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Cron Job Blues



Normal Mode | Print  

 Cron Job Blues, Cron Job not working on Webuzo (6 Replies, Read 5364 times)
jficklin
Group: Member
Post Group: Newbie
Posts: 3
Status:
So, I've written a php script to delete files inside of a folder that I want to run as a cron job. When I run the script over SSH, it works great. As soon as I add it as a cron job on Webuzo, nothing happens. I'm wondering if this is some sort of a permissions thing or maybe just something I'm overlooking.

The cron job command is:

/usr/bin/php -q -d safe_mode=Off
/home/myusername/CronTest


This is the script I grabbed and customized from stackoverflow:

$files = glob('path/to/temp/*'); // get all file names
foreach($files as $file){ // iterate files
  if(is_file($file))
    unlink($file); // delete file
}
IP: --   


Threads
 jficklin   Cron Job Blues, Cron Job not working on Webuzo (6 Replies, Read 5364 times)
    |--  peopleinside   Hi, please look...   on November 27, 2015, 10:16 am
    |--  peopleinside   Maybe also that...   on November 27, 2015, 10:18 am
    |--  nikhil89   Hi Justin, We...   on November 27, 2015, 1:49 pm
    |--  jficklin   Thanks guys. Looks...   on November 27, 2015, 4:02 pm
    |--  nikhil89   Hi Justin, No...   on November 28, 2015, 2:15 pm
    |--  jficklin   Everything working. Thanks...   on November 28, 2015, 4:28 pm

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 27, 2024, 3:55 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.023