From 5b28a52346a0c9da61a8502e1c96378c77282496 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 29 Jul 2026 19:15:27 -0400 Subject: [PATCH] Update log add -b all --- log | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/log b/log index 6ba02f3c..8963b64f 100755 --- a/log +++ b/log @@ -29,19 +29,19 @@ if [ "$REALTIME" = "1" ] ; then sleep 2 if [ "$1" = "-t" ] ; then - sudo journalctl -af -u transmit # > /home/pi/CubeSatSim/logt.txt + sudo journalctl -b all -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" elif [ "$1" = "-c" ]; then - sudo journalctl -af -u command # > /home/pi/CubeSatSim/logc.txt + sudo journaclt -b all -af -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 -af -u pacsatsim # > /home/pi/CubeSatSim/logp.txt + sudo journalctl -b all -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 frequency # > /home/pi/CubeSatSim/logr.txt + sudo journalctl -b all -af -u frequency # > /home/pi/CubeSatSim/logr.txt elif [ "$1" = "-f" ] ; then while true; do cat /home/pi/CubeSatSim/frequency.txt | tr -d '\n' @@ -50,10 +50,10 @@ if [ "$REALTIME" = "1" ] ; then printf "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b" done elif [ "$1" = "-b" ]; then - sudo journalctl -af -u pushbutton # > /home/pi/CubeSatSim/logb.txt + sudo journalctl -b all -af -u pushbutton # > /home/pi/CubeSatSim/logb.txt cat /home/pi/CubeSatSim/logb.txt else - sudo journalctl -af -u cubesatsim # > /home/pi/CubeSatSim/log.txt + sudo journalctl -b all -af -u cubesatsim # > /home/pi/CubeSatSim/log.txt # cat /home/pi/CubeSatSim/log.txt # echo -e "\nLog file also saved as /home/pi/CubeSatSim/log.txt" fi @@ -61,31 +61,31 @@ if [ "$REALTIME" = "1" ] ; then else if [ "$1" = "-t" ] ; then - sudo journalctl -a -u transmit > /home/pi/CubeSatSim/logt.txt + sudo journalctl -b all -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 + sudo journalctl -b all -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 + sudo journalctl -b all -a -u pacsatsim > /home/pi/CubeSatSim/logp.txt cat /home/pi/CubeSatSim/logp.txt echo -e "\nPacSat Log file also saved as /home/pi/CubeSatSim/logp.txt" elif [ "$1" = "-r" ]; then - sudo journalctl -a -u frequency > /home/pi/CubeSatSim/logr.txt + sudo journalctl -b all -a -u frequency > /home/pi/CubeSatSim/logr.txt cat /home/pi/CubeSatSim/logr.txt echo -e "\nFrequency Log file also saved as /home/pi/CubeSatSim/logf.txt" elif [ "$1" = "-f" ] ; then cat /home/pi/CubeSatSim/frequency.txt echo elif [ "$1" = "-b" ]; then - sudo journalctl -a -u pushbutton > /home/pi/CubeSatSim/logb.txt + sudo journalctl -b all -a -u pushbutton > /home/pi/CubeSatSim/logb.txt cat /home/pi/CubeSatSim/logb.txt echo -e "\nPushbutton Log file also saved as /home/pi/CubeSatSim/logb.txt" else - sudo journalctl -a -u cubesatsim > /home/pi/CubeSatSim/log.txt + sudo journalctl -b all -a -u cubesatsim > /home/pi/CubeSatSim/log.txt cat /home/pi/CubeSatSim/log.txt echo -e "\nLog file also saved as /home/pi/CubeSatSim/log.txt" fi