[arm-allstar] multiple connpgm?

Russell Thomas russell at kv4s.com
Tue Apr 9 19:44:36 EDT 2019


worked perfectly, was missing this part: "$*"

Thanks!



On Tue, Apr 9, 2019 at 3:41 PM David McGough <kb4fxc at inttek.net> wrote:

>
> OOPS. sigh. See corrected script, below.
>
>
>
>
> rpt.conf node stanza:
> ----------------------------------------------------------
> 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