Update log add -b all

master-bw3
Alan Johnston 4 months ago committed by GitHub
parent 92b0e8b854
commit 5b28a52346
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

24
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

Loading…
Cancel
Save

Powered by TurnKey Linux.