[arm-allstar] Auto Disconnect/connect scripts

Matt Holder ke0ncp at yahoo.com
Tue Oct 11 08:45:56 EDT 2022


Got it. Thanks!


Sent from Yahoo Mail for iPhone


On Tuesday, October 11, 2022, 4:29 AM, Frans - J69DS van Santbrink <j69ds at hotmail.com> wrote:

#yiv3887850530 P {margin-top:0;margin-bottom:0;}Hi Matt
the way I do all my auto connects and disconnects is via cron. 
First of I set up my macros in rpt config in the macros section/stanza [macrosNODE#], example:12=*73OTHERNODE *73MYNODE *73MYLOCALNODE#     ; Connect nodes

Then on cron is use the following line to call that macro:10 08 * * 2,4 /usr/sbin/asterisk -rx "rpt fun 51686 *512"

so for all my connects disconnects etc I have entries in cron, I have tried to use the rpt.conf but that I never got it right on a couple of nodes. So I kept it to cron for control.
Hope this helps you somewhat

Frans van Santbrink,

Amateur Radio Operator: J69DS - J62DX - J62YOTA - J64SLI - [PJ7PK]


http://J69ds.dageekz.com



From: ARM-allstar <arm-allstar-bounces at hamvoip.org> on behalf of "Matt Holder via ARM-allstar" <arm-allstar at hamvoip.org>
Sent: Monday, October 10, 2022 11:15 AM
To: ARM Allstar <arm-allstar at hamvoip.org>
Cc: Matt Holder <ke0ncp at yahoo.com>
Subject: [arm-allstar] Auto Disconnect/connect scripts Hi all,
I have been playing with some auto disconnect and connect scripts and for the life of me can not get anything to work. I am looking to first disconnect all nodes, then connect up two specific nodes. I understand the cronjob part but I think I am getting the script wrong.The path to the .sh file is in the cron below. I have chmod 750 the file and just cant get it to disconnect nodes or connect nodes. I am not getting an errors when I run the file.  Mu node number is where it says MYNODE and the nodes that I want to connect to are NODE1 and NODE2. Can anyone assist as to where I am going wrong?
Thanks,Matt - ke0ncp
# 42 22 * * 3 /etc/asterisk/local/autoDisco.sh#/usr/sbin/asterisk -rx "rpt fun MYNODE *76"/usr/sbin/asterisk -rx "rpt fun MYNODE *73NODE1"/usr/sbin/asterisk -rx "rpt fun MYNODE *73NODE2"



_______________________________________________

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/4 web page - http://hamvoip.org




More information about the ARM-allstar mailing list