From 7ea0ad150750e8f76c898a8da8f8662b601fb679 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 15 Oct 2024 15:59:18 -0400 Subject: [PATCH] Update log added -t for transmit log --- log | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/log b/log index 3ce868f7..2a3ce9d7 100755 --- a/log +++ b/log @@ -2,10 +2,10 @@ echo -e "\nLog file script for CubeSatSim\n" -if [ "$1" = "-r" ]; then - sudo journalctl -a -u rpitx > /home/pi/CubeSatSim/logr.txt - cat /home/pi/CubeSatSim/logr.txt - echo -e "\nTransmit Log file also saved as /home/pi/CubeSatSim/logr.txt" +if [ "$1" = "-r" ] || [ "$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" elif [ "$1" = "-c" ]; then sudo journalctl -a -u command > /home/pi/CubeSatSim/logc.txt cat /home/pi/CubeSatSim/logc.txt