From 7a94bdf6ab5fe493a265ec15c356357f03477b14 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 7 Dec 2024 17:41:40 -0500 Subject: [PATCH] Update log added -p for pacsatsim --- log | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/log b/log index 2a3ce9d7..9c69874c 100755 --- a/log +++ b/log @@ -10,6 +10,10 @@ elif [ "$1" = "-c" ]; then sudo journalctl -a -u command > /home/pi/CubeSatSim/logc.txt cat /home/pi/CubeSatSim/logc.txt echo -e "\nCommand and Control Log file also saved as /home/pi/CubeSatSim/logc.txt" +elif [ "$1" = "-p" ]; then + 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" else sudo journalctl -a -u cubesatsim > /home/pi/CubeSatSim/log.txt cat /home/pi/CubeSatSim/log.txt