[arm-allstar] cron job setup
Doug Crompton
wa3dsp at gmail.com
Fri Mar 2 21:21:39 EST 2018
Kevin,
cron time is local 24 hour time.
56 17 * * * 6 /usr/sbin/asterisk -rx "rpt fun XXXXX *3XXXXX"
This would connect on Saturday at 17:56 or 5:56PM local
00 20 * * * 6 /usr/sbin/asterisk -rx "rpt fun XXXXX *1XXXXX"
And this would disconnect on Saturday at 20:00 or 8 PM local
Make sure there are spaces between the '*' in the cron time
You use crontab -e to edit, crontab -l to list from the Linux prompt.
You might be better off from a reliability standpoint using *73 and *71
permanent connects.
You can put comment in a cron entry or comment out statments temporarily -
# Disconnect the mountaintop repeater
00 20 * * * 6 /usr/sbin/asterisk -rx "rpt fun XXXXX *1XXXXX"
# Connect the mountaintop repeater
#56 17 * * * 6 /usr/sbin/asterisk -rx "rpt fun XXXXX *3XXXXX" << shown
commented so not using
Time order does not matter in cron.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Fri, Mar 2, 2018 at 9:07 PM, "Kevin Halton via arm-allstar" <
arm-allstar at hamvoip.org> 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"
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
More information about the arm-allstar
mailing list