Welcome Guest. Please Login or Register  


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



Threaded Mode | Print  

 Cron Job Blues, Cron Job not working on Webuzo (6 Replies, Read 5285 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: --   

Cron Job Blues
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi,
please look here:
http://www.webuzo.com/wiki/Add_Cron_Job

In the screen are showed Cron are compiled with all *
Do you set a day and time for the cron job? Like every 5 minutes?

Can you post here a screen of your Cron Job page?
Maybe this can help better to understand what can be the problem.

If this not solve the issue maybe Webuzo Team can ask more information.
Thank you!
Have a great day!


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job Blues
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Maybe also that can be useful
http://www.webuzo.com/blog/how-to/manage-cron-jobs-in-webuzo-1633.html


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

Cron Job Blues
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi Justin,

We have replied to your ticket #497896. Please check the same and revert back to us, if you need any further information.
IP: --   

Cron Job Blues
jficklin
Group: Member
Post Group: Newbie
Posts: 3
Status:
Thanks guys.  Looks like I may have just had the timing set wrong so I wasn't seeing it update.  Will verify that shortly.
IP: --   

Cron Job Blues
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
Hi Justin,

No issues. Please let us know if you still face the issue. We will be happy to help you.
IP: --   

Cron Job Blues
jficklin
Group: Member
Post Group: Newbie
Posts: 3
Status:
Everything working.  Thanks for the help!
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 5:13 pm.

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