(list.sh)
 
(trace.sh)
 
Line 46: Line 46:
 
echo  $0 -r  Get connected repeater list
 
echo  $0 -r  Get connected repeater list
 
echo
 
echo
</syntaxhighlight>
 
 
== trace.sh ==
 
 
Print run-rime stack trace.
 
 
<syntaxhighlight lang="bash">
 
#!/bin/bash
 
 
sudo killall -s SIGUSR2 brandmeister
 
sudo tail -n 10 /var/log/syslog | grep -E "brandmeister.+Stack" | tail -n 1 | sed -e 's/#012/\n/g'
 
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 22:23, 6 February 2021

list.sh

Allows to see the list of active context or connected repeaters

Command line parameters:

  • -c Get active context list
  • -r Get connected repeater list


<syntaxhighlight lang="bash">

  1. !/bin/bash

CALL="dbus-send --system --dest=me.burnaway.BrandMeister --type=method_call --print-reply /me/burnaway/BrandMeister"

if [ "$1" == "-c" ] then

 echo
 echo BrandMeister context list:
 echo
 $CALL me.burnaway.BrandMeister.getContextList | \
   grep -E -o "[a-z0-9-]{36}" | \
   xargs -l -I {} \
   $CALL me.burnaway.BrandMeister.getContextData string:'{}'
 exit

fi

if [ "$1" == "-r" ] then

 echo
 echo BrandMeister repeater list:
 echo
 
 $CALL me.burnaway.BrandMeister.getContextList uint32:2 | \
   grep -E -o "[a-z0-9-]{36}" | \
   xargs -l -I {} \
   $CALL me.burnaway.BrandMeister.getRepeaterData string:'{}'
 exit

fi

echo echo Usage: echo $0 -c Get active context list echo $0 -r Get connected repeater list echo </syntaxhighlight>

list.sh[edit]

Allows to see the list of active context or connected repeaters

Command line parameters:


<syntaxhighlight lang="bash">

  1. !/bin/bash

CALL="dbus-send --system --dest=me.burnaway.BrandMeister --type=method_call --print-reply /me/burnaway/BrandMeister"

if [ "$1" == "-c" ] then

 echo
 echo BrandMeister context list:
 echo
 $CALL me.burnaway.BrandMeister.getContextList | \
   grep -E -o "[a-z0-9-]{36}" | \
   xargs -l -I {} \
   $CALL me.burnaway.BrandMeister.getContextData string:'{}'
 exit

fi

if [ "$1" == "-r" ] then

 echo
 echo BrandMeister repeater list:
 echo
 
 $CALL me.burnaway.BrandMeister.getContextList uint32:2 | \
   grep -E -o "[a-z0-9-]{36}" | \
   xargs -l -I {} \
   $CALL me.burnaway.BrandMeister.getRepeaterData string:'{}'
 exit

fi

echo echo Usage: echo $0 -c Get active context list echo $0 -r Get connected repeater list echo </syntaxhighlight>

trace.sh[edit]

Print run-rime stack trace.

<syntaxhighlight lang="bash">

  1. !/bin/bash

sudo killall -s SIGUSR2 brandmeister sudo tail -n 10 /var/log/syslog | grep -E "brandmeister.+Stack" | tail -n 1 | sed -e 's/#012/\n/g' </syntaxhighlight>