Update log added -t for transmit log

release-3
Alan Johnston 1 year ago committed by GitHub
parent 99d105f3c4
commit 7ea0ad1507
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
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

Loading…
Cancel
Save

Powered by TurnKey Linux.