Page 1 of 1

Add Cron from cli not working ?

Posted: Mon Apr 04, 2016 10:11 pm
by skamasle
Hi

I try to add cron jobs from cli but not working by default whit asterisk

Code: Select all

v-add-cron-job admin 0 0 1 1 *  comand
This return:

Error: wday addons is not valid

Same code working fine whit out asterisk:

Code: Select all

v-add-cron-job admin 0 0 1 1 3 comand
I dont have time to debug it, so I ask here :)

Re: Add Cron from cli not working ?

Posted: Fri Apr 08, 2016 6:15 pm
by skamasle
So it not working because is not posible pass asterisk as argument in cli bash take all file names of directory.

So v-add-cron-job not working fine..

EDIT...

Solved it whit set -f or scaping \

Not is the way but working

Re: Add Cron from cli not working ?

Posted: Sat Oct 22, 2016 7:09 am
by ymakux
Can you please post an example of working command? I've tried everything but still no luck

Re: Add Cron from cli not working ?

Posted: Wed Oct 26, 2016 1:57 pm
by skurudo
$ v-add-cron-job
Usage: USER MIN HOUR DAY MONTH WDAY COMMAND [JOB] [RESTART]
Like this:

Code: Select all

 v-add-cron-job user '*' '*' '*' '*' '*'  /path/test.sh