[arm-allstar] cron job setup

Tony Ross ynotssor at yahoo.com
Fri Mar 2 23:47:30 EST 2018


On 03/02/2018 06:07 PM, "Kevin Halton" wrote:
> I am trying to setup a cron job to connect to a different node at a
> pre-determined time and then disconnect at another pre-determined time. My
> first question is the time to set is it LOCAL time that gets entered? Second
> question, after I set these up do I need to restart asterisk? Last question
> does this look correct to start at 5:56pm and disconnect at 8pm?
>
>
> 56 17 * * * 6 /usr/sbin/asterisk -rx "rpt fun XXXXX *3XXXXX"
>
> 00 20 * * * 6/usr/sbin/asterisk -rx "rpt fun XXXXX *1XXXXX"

The "6" prior to each command field will generate errors for you. The 
schedule fields have only 5 components (see # m h  dom mon dow command 
which should be the last header line in a standard crontab file), so if 
you want to start at 17:56 on a Saturday:

56 17 * * 6 command


More information about the arm-allstar mailing list