From f6115583ab393775848ac6e12b5031cf39c8e84f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 30 Jun 2026 16:01:59 -0400 Subject: [PATCH] Update log added rigctld --- log | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/log b/log index a516a3c0..e3a4afc5 100755 --- a/log +++ b/log @@ -8,6 +8,7 @@ if [ "$1" = "-h" ] ; then echo " -t transmit" echo " -c command and control" echo " -p pacsat" + echo " -r rigctld" echo "Default is the log is dumpted to the screen and written to a file." echo "If an additional r is included, the log is realtime, and exits with a Control-C" echo @@ -25,7 +26,7 @@ if [ "$REALTIME" = "1" ] ; then echo sleep 2 - if [ "$1" = "-r" ] || [ "$1" = "-t" ] ; then + if [ "$1" = "-t" ] ; then sudo journalctl -af -u transmit # > /home/pi/CubeSatSim/logt.txt # cat /home/pi/CubeSatSim/logt.txt # echo -e "\nTransmit Log file also saved as /home/pi/CubeSatSim/logt.txt" @@ -37,6 +38,8 @@ if [ "$REALTIME" = "1" ] ; then sudo journalctl -af -u pacsatsim # > /home/pi/CubeSatSim/logp.txt cat /home/pi/CubeSatSim/logp.txt # echo -e "\nCommand and Control Log file also saved as /home/pi/CubeSatSim/logp.txt" + elif [ "$1" = "-r" ]; then + sudo journalctl -af -u rigctld # > /home/pi/CubeSatSim/logr.txt else sudo journalctl -af -u cubesatsim # > /home/pi/CubeSatSim/log.txt # cat /home/pi/CubeSatSim/log.txt @@ -45,7 +48,7 @@ if [ "$REALTIME" = "1" ] ; then else - if [ "$1" = "-r" ] || [ "$1" = "-t" ] ; then + if [ "$1" = "-t" ] ; then sudo journalctl -a -u transmit > /home/pi/CubeSatSim/logt.txt cat /home/pi/CubeSatSim/logt.txt echo -e "\nTransmit Log file also saved as /home/pi/CubeSatSim/logt.txt" @@ -57,6 +60,10 @@ else sudo journalctl -a -u pacsatsim > /home/pi/CubeSatSim/logp.txt cat /home/pi/CubeSatSim/logp.txt echo -e "\nCommand and Control Log file also saved as /home/pi/CubeSatSim/logp.txt" + elif [ "$1" = "-r" ]; then + sudo journalctl -a -u rigctld > /home/pi/CubeSatSim/logr.txt + cat /home/pi/CubeSatSim/logr.txt + echo -e "\nrigtcld Log file also saved as /home/pi/CubeSatSim/logr.txt" else sudo journalctl -a -u cubesatsim > /home/pi/CubeSatSim/log.txt cat /home/pi/CubeSatSim/log.txt