<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma,sans-serif" color="#000000">Dave,<br><br> Remember that cron is 24 hour time. So 9PM would be 21 00 or reverse in cron. The correct way would be: <br><br></font><br id="FontBreak">To disconnect all nodes<br><br>20 21 * * 1 /usr/sbin/asterisk -rx "rpt fun <yournode> *76" <br><br>or to just specifically disconnect a node<br><br>20 21 * * 1 /usr/sbin/asterisk -rx "rpt fun <yournode> *7127225" <br><br>Connecting<br><br>50 20 * * 1 /usr/sbin/asterisk -rx "rpt fun <yournode> *7327225"<br><br><yournode> is the node on your server you want to apply the command to. Of course no < or > around it, just the node number. It must be a node on your server.<br><br>Also I don't usually do it this way. I call scripts instead like this -<br><br>00 18 20 12 * /etc/asterisk/local/alaska_connect<br><br>The script would look like this -<br><br>#! /bin/bash<br>#<br>/usr/sbin/asterisk -rx "rpt fun 27225 *7327133"<br><br>Either way works fine. It is your preference. The advantage of the script is you could also call it with DTMF if programmed in rpt.conf functions.<br><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div>> Date: Wed, 4 May 2016 18:01:10 -0700<br>> To: arm-allstar@hamvoip.org<br>> Subject: Re: [arm-allstar] Cron Jobs<br>> From: arm-allstar@hamvoip.org<br>> CC: david@lang.hm; mrpjf150@gmail.com<br>> <br>> On Wed, 6 Apr 2016, Pete Fierro via arm-allstar wrote:<br>> <br>> > Hello<br>> ><br>> > Tinkering with scripting here.I want to connect to the ARRL News Monday<br>> > night&want the scripts to do this while I'm away.Here is what I have<br>> ><br>> > To disconnect<br>> ><br>> > 20 9 * * 1/usr/sbin/asterisk -rx "rpt fun 27225 *76<br>> ><br>> > Connecting<br>> ><br>> > 50 8 * * 1 /usr/sbin/asterisk -rx "rpt fun 27225 *73<br>> ><br>> > Entered crontab -e I see both files there.Do these files need to be put<br>> > in nsomeplace else to be executable?Or are they executable now?<br>> <br>> I know this is an old post, but crontab received a significant upgrade several <br>> years ago and there is an /etc/crontab file that takes one additional argument <br>> between the timeing and the command, what user to run as.<br>> <br>> The advantage is that your commands are not scattered over many files, and you <br>> don't have to use the crontab -e command to edit them, this file can be managed <br>> with any editor or config management tool.<br>> <br>> David Lang<br>> _______________________________________________<br>> <br>> arm-allstar mailing list<br>> arm-allstar@hamvoip.org<br>> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar<br>> <br>> Visit the BBB and RPi2 web page - http://hamvoip.org<br>> <br></div> </div></body>
</html>