Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : cron job command not working in webuzo



Threaded Mode | Print  

 cron job command not working in webuzo, cron job not working (2 Replies, Read 665 times)
sanrosihombing
Group: Member
Post Group: Newbie
Posts: 1
Status:
hello guest,
neet some help. i create cron job file using webuzo like this

exec("find /home/admin/www/asset/avatar/dummy -type f -exec chmod 0755 {} +");

exec('rm -rf /home/admin/www/asset/avatar/dummy/*');


if i run using SSH its working with this command
php -q /home/admin/www/asset/avatar/clear_dummy.php

but if i insert the command to webuzo cron joblike its not working. this is the command in webuzo cron job i had try :

*
                           
                       
                            *
                           
                       
                            *
                           
                       
                            *
                           
                       
                            *
                           
                       
                            php -q /home/admin/www/asset/avatar/clear_dummy.php

*
                           
                       
                            *
                           
                       
                            *
                           
                       
                            *
                           
                       
                            *
                           
                       
                            php -f /home/admin/www/asset/avatar/clear_dummy.php

i had open ticket but its so long to reply.

IP: --   

cron job command not working in webuzo
peopleinside
Group: Member
Post Group: Super Member
Posts: 1257
Status:
Hi,
i am not expert in Cron jobs but if the Cron job are not correct will sure not work.

I use Cron Jobs on Webuzo and all is working.
Hope you will have a reply soon.


-----------------------
PeopleInside  :angel:
Passionate Webuzo User
IP: --   

cron job command not working in webuzo
webuzo_manager
Group: Webuzo Team
Post Group: Elite Member
Posts: 272
Status:
Hi,

There is no such thing as CRON is not working, it's a system level utility which always runs no matter what the conditions are.

The main issue with CRON jobs are the permissions and the ownership of the file you want to execute and what's it's trying to do.

So anybody who faces an issue with CRON should execute the CRON via SSH as a Webuzo user and not a ROOT user(this is the most common mistake most of the users do as the CRON entered via Webuzo always runs as Webuzo user who is an unprivileged user)

Hope this helps.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is November 18, 2018, 3:58 am.

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