Update log add -c for c&c log

pull/323/head
Alan Johnston 1 year ago committed by GitHub
parent a05b584769
commit 71fb2d21ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
log

@ -5,7 +5,11 @@ echo -e "\nLog file script for CubeSatSim\n"
if [ "$1" = "-r" ]; then if [ "$1" = "-r" ]; then
sudo journalctl -a -u rpitx > /home/pi/CubeSatSim/logr.txt sudo journalctl -a -u rpitx > /home/pi/CubeSatSim/logr.txt
cat /home/pi/CubeSatSim/logr.txt cat /home/pi/CubeSatSim/logr.txt
echo -e "\nLog file also saved as /home/pi/CubeSatSim/logr.txt" echo -e "\nTransmit Log file also saved as /home/pi/CubeSatSim/logr.txt"
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"
else else
sudo journalctl -a -u cubesatsim > /home/pi/CubeSatSim/log.txt sudo journalctl -a -u cubesatsim > /home/pi/CubeSatSim/log.txt
cat /home/pi/CubeSatSim/log.txt cat /home/pi/CubeSatSim/log.txt

Loading…
Cancel
Save

Powered by TurnKey Linux.