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