[arm-allstar] multiple connpgm?

David McGough kb4fxc at inttek.net
Tue Apr 9 16:35:12 EDT 2019


Russell,

The app_rpt module doesn't support multiple connpgm or discpgm statements. 
However, it's easy to do what you're needing just by using an intermediate 
script. The intermediate script can then run multiple other scripts. For 
example:

connpgm=/usr/local/sbin/my-connect-script


Contents of /usr/local/sbin/my-connect-script are:
----------------------------------------------------------

#!/bin/bash

/usr/local/sbin/msg_on_connect
/usr/local/sbin/supermon/smlogger 1

----------------------------------------------------------

Make sure to set the "execute" permissions for your new script:

chmod 755 /usr/local/sbin/my-connect-script 


....That's it!


73, David KB4FXC




On Tue, 9 Apr 2019, "Russell Thomas via ARM-allstar" wrote:

> if not how could I activate the logger from my msg_on_connect script?
> 
> echo "Node $2 connected to node $1 at $(date +%Y-%m-%d.%H:%M:%S):" | mail
> -s "My repeater" myemail at gmail.com
> exit 0
> 
> On Tue, Apr 9, 2019 at 10:26 AM Russell Thomas <russell at kv4s.com> wrote:
> 
> > Is there a way to have multiple connpgm's?
> >
> > connpgm=/usr/local/sbin/msg_on_connect
> >
> > connpgm=/usr/local/sbin/supermon/smlogger 1
> > discpgm=/usr/local/sbin/supermon/smlogger 0
> >
> > 73,
> > Russell Thomas, KV4S
> > DMR TG: *240218 *| YSF: *US KV4S* | D-STAR: *XRF334R*
> > Allstar: *47923 *| IRLP: *4535 *| EchoLink: *KV4S-L*
> > Web: http://KV4S.com
> >
> >
> _______________________________________________
> 
> 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