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

Schedule a cron task to run just once

General questions about VestaCP
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
neiklot
Posts: 13
Joined: Tue Jan 19, 2016 9:56 am

Schedule a cron task to run just once
  • Quote

Post by neiklot » Thu Feb 04, 2016 8:59 am

Hi guys!

Yesterday I scheduled a cron task to run at midnight and it didn't work.

Those are my settings:

Image

I wanted to run it at 2016-02-04 00:01 and nothing happened.

What am I doing wrong? Thanks a lot guys!
Top

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

Re: Schedule a cron task to run just once
  • Quote

Post by skurudo » Thu Feb 04, 2016 9:38 am

sudo maybe? user admin without sudo not powerfull enough.

Check your command from console, if it works fine.
Top

Elizine
Posts: 50
Joined: Wed Aug 12, 2015 12:11 pm
Contact:
Contact Elizine
Website

Re: Schedule a cron task to run just once
  • Quote

Post by Elizine » Thu Feb 04, 2016 10:43 am

Try this one -

Code: Select all

0 0 04 2 ? 2016  /command
or

Code: Select all

15 14 15 05 * /tmp/run-my-job
Top

neiklot
Posts: 13
Joined: Tue Jan 19, 2016 9:56 am

Re: Schedule a cron task to run just once
  • Quote

Post by neiklot » Thu Feb 04, 2016 12:48 pm

skurudo wrote:sudo maybe? user admin without sudo not powerfull enough.

Check your command from console, if it works fine.
No, it not a sudo problem I think. I will test it anyway.
Elizine wrote:Try this one -

Code: Select all

0 0 04 2 ? 2016  /command
or

Code: Select all

15 14 15 05 * /tmp/run-my-job
I'm sorry but I don't understand your answer. Do I need to run it from terminal?

Thanks both for your answers!
Top

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

Re: Schedule a cron task to run just once
  • Quote

Post by skurudo » Thu Feb 04, 2016 3:04 pm

neiklot wrote:I'm sorry but I don't understand your answer. Do I need to run it from terminal?
If you're use wrong command, you'll never get expected result ;-)
Top

neiklot
Posts: 13
Joined: Tue Jan 19, 2016 9:56 am

Re: Schedule a cron task to run just once
  • Quote

Post by neiklot » Thu Feb 04, 2016 4:38 pm

skurudo wrote:
neiklot wrote:I'm sorry but I don't understand your answer. Do I need to run it from terminal?
If you're use wrong command, you'll never get expected result ;-)
That "I'm sorry..." answer wasn't for you. That answer was for Elizine.
Top


Post Reply
  • Print view

6 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