Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta CLI
  • Search

Problem adding a new cron job

Questions regarding the Command Line Interface
CLI
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
ymakux
Posts: 4
Joined: Sat Oct 22, 2016 7:07 am

Problem adding a new cron job
  • Quote

Post by ymakux » Sat Oct 22, 2016 7:23 am

Hello
I'm trying to add a new cron job using the cli. It should call an external url once a hour

Code: Select all

v-add-cron-job admin 0 * * * * wget -O - http://test.com/tasks.php >/dev/null 2>&1
Or even

Code: Select all

v-add-cron-job admin 0 * * * * wget -O - http://test.com/tasks.php >/dev/null 2>&1 sudo service cron restart
It doesn't return any errors and looks like everithing OK, but no new cron job appears. Please help to solve it.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Problem adding a new cron job
  • Quote

Post by skurudo » Wed Oct 26, 2016 1:58 pm

viewtopic.php?f=17&t=11101&p=51813#p51813
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “CLI”



  • 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