[arm-allstar] Launching script on event...
Danny K5CG
k5cg at hamoperator.org
Wed Nov 20 11:39:31 EST 2019
I neglected to mention that two arguments are passed as well.
$1 is your node number, $2 is the remote node number.
#!/bin/bash
LOGFILE=/var/log/notify_$(date +%Y%m%d).log
echo "Node $2 connected to node $1 at $(date +%H:%M:%S):" >> $LOGFILE
----- Original Message -----
From: "ARM Allstar" <arm-allstar at hamvoip.org>
To: "ARM Allstar" <arm-allstar at hamvoip.org>
Cc: "k5cg" <k5cg at hamoperator.org>
Sent: Wednesday, November 20, 2019 9:50:21 AM
Subject: Re: [arm-allstar] Launching script on event...
In rpt.conf
connpgm=/etc/asterisk/local/connect.sh
; Program or script to run at connection
discpgm=/etc/asterisk/local/disconnect.sh
; Program or script to run at disconnection
----- Original Message -----
From: "ARM Allstar" <arm-allstar at hamvoip.org>
To: "ARM Allstar" <arm-allstar at hamvoip.org>
Cc: "Brad Trogdon" <Brad at trogdon.org>
Sent: Wednesday, November 20, 2019 9:39:11 AM
Subject: [arm-allstar] Launching script on event...
Looking through archived messages I found a script that will accomplish a
need. My question is how can a script be launched on an event of a node
connecting or disconnecting? I need it in real-time vs a CRON scheduled
execution.
Thanks in advance.
-Brad
W4INT
_______________________________________________
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
_______________________________________________
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