Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Cronjob command is not working

General questions about VestaCP
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
addyjo
Posts: 8
Joined: Sat Apr 23, 2016 5:01 am

Cronjob command is not working
  • Quote

Post by addyjo » Sat Apr 23, 2016 5:08 am

hello i am trying to run this cron command below but its not working

wget -O - http://MYSTORE.COM/multiscraper/process/ >/dev/null 2>&1


am i making some mistake ??? please help me to get this command work


please help
Top

Falzo
Posts: 60
Joined: Mon Mar 28, 2016 8:49 am

Re: Cronjob command is not working
  • Quote

Post by Falzo » Sat Apr 23, 2016 7:58 am

have you tested this command beforehand via cli?
where did you put it for having it run via cron?
did you restart the cron service if you added it somewhere manually?
maybe get rid of the >/dev/null 2>&1 part. at least for testing purposes and to be able to see whats wrong in the log-files.
Top

addyjo
Posts: 8
Joined: Sat Apr 23, 2016 5:01 am

Re: Cronjob command is not working
  • Quote

Post by addyjo » Sat Apr 23, 2016 2:02 pm

hello friend,

i am noob with vestacp earlier i was using the command with godaddy server and it was working fine. may be vestacp has its own command line to make this work, could you please help me in to make this command work. or any other alternate of this cron command

i have already tried what you have said in last post but no success yet :(


please help
Top

Mr.Erbutw
Posts: 1040
Joined: Tue Apr 29, 2014 10:05 pm

Os: CentOS 6x
Web: apache + nginx
Re: Cronjob command is not working
  • Quote

Post by Mr.Erbutw » Sat Apr 23, 2016 3:04 pm

In control panel in masonry CRON, create a task, specify Cauchy, minutes, etc if you want not to specify a value then in the field enter *, and in the command field, enter

Code: Select all

/usr/bin/php /home/login/web/domain/public_html/cron.php
the
domain - your domain is Valid.
login - Binding your user.
cron.php - Your task which should be executed
Top

Falzo
Posts: 60
Joined: Mon Mar 28, 2016 8:49 am

Re: Cronjob command is not working
  • Quote

Post by Falzo » Sat Apr 23, 2016 8:45 pm

addyjo wrote: i have already tried what you have said in last post but no success yet :(
I respectfully doubt that.

this probably has nothing to with vestacp at all. for sure you can do a wget to do something like this. but you should make sure this command works before you put it into cron. so simply try it from the normal command line aka ssh aka cli...
that said you have to make sure that wget is installed and that the url you are trying to wget is reachable and so on.

I can't help if you don't care to elaborate or at least answer to my questions, because I am not able to look into your logfiles or at the error-messages you may get. ;-)
Top

addyjo
Posts: 8
Joined: Sat Apr 23, 2016 5:01 am

Re: Cronjob command is not working
  • Quote

Post by addyjo » Sun Apr 24, 2016 5:22 am

hello friend now after few changes its working

wget http://eshopi.com/my_store_03/process/


however its able able to find the listing of pages but its not able to grab the pages faster as it should,

about checking the cron tab in cli, ssh ... so to be very honest i am newbie and don't know how to check this... could you please explain me how to do it so i can share the logfile or the error message with you..


thanks
Top

Falzo
Posts: 60
Joined: Mon Mar 28, 2016 8:49 am

Re: Cronjob command is not working
  • Quote

Post by Falzo » Sun Apr 24, 2016 7:04 am

if it is slow, that maybe related to the server itself, long lists may take some time to be ex- or imported to your database and that may slow down things. vestacp even comes with very short timeout-settings in configuration-file for mysql, which may lead to problems while fetching lists / doing cronjobs like this on pages with large databases.

I suggest you find yourself someone you trust and who knows about linux administration so you can work with him directly on your issues. there are plenty of options to go through, which sadly would otherwise leave us here guessing around every other day ;-)
Top


Post Reply
  • Print view

7 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password