|
|
|
@ -64,33 +64,40 @@ if [ "$REALTIME" = "1" ] ; then
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$1" = "-t" ] ; then
|
|
|
|
if [ "$1" = "-t" ] ; then
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/logt.txt
|
|
|
|
sudo journalctl -b all -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
|
|
|
|
cat /home/pi/CubeSatSim/logt.txt
|
|
|
|
echo -e "\nTransmit Log file also saved as /home/pi/CubeSatSim/logt.txt"
|
|
|
|
echo -e "\nTransmit Log file also saved as /home/pi/CubeSatSim/logt.txt"
|
|
|
|
elif [ "$1" = "-c" ]; then
|
|
|
|
elif [ "$1" = "-c" ]; then
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/logc.txt
|
|
|
|
sudo journalctl -b all -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
|
|
|
|
cat /home/pi/CubeSatSim/logc.txt
|
|
|
|
echo -e "\nCommand and Control Log file also saved as /home/pi/CubeSatSim/logc.txt"
|
|
|
|
echo -e "\nCommand and Control Log file also saved as /home/pi/CubeSatSim/logc.txt"
|
|
|
|
elif [ "$1" = "-p" ]; then
|
|
|
|
elif [ "$1" = "-p" ]; then
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/logp.txt
|
|
|
|
sudo journalctl -b all -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
|
|
|
|
cat /home/pi/CubeSatSim/logp.txt
|
|
|
|
echo -e "\nPacSat Log file also saved as /home/pi/CubeSatSim/logp.txt"
|
|
|
|
echo -e "\nPacSat Log file also saved as /home/pi/CubeSatSim/logp.txt"
|
|
|
|
elif [ "$1" = "-r" ]; then
|
|
|
|
elif [ "$1" = "-r" ]; then
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/logr.txt
|
|
|
|
sudo journalctl -b all -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
|
|
|
|
cat /home/pi/CubeSatSim/logr.txt
|
|
|
|
echo -e "\nFrequency Log file also saved as /home/pi/CubeSatSim/logf.txt"
|
|
|
|
echo -e "\nFrequency Log file also saved as /home/pi/CubeSatSim/logr.txt"
|
|
|
|
elif [ "$1" = "-f" ] ; then
|
|
|
|
elif [ "$1" = "-f" ] ; then
|
|
|
|
cat /home/pi/CubeSatSim/frequency.txt
|
|
|
|
cat /home/pi/CubeSatSim/frequency.txt
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
elif [ "$1" = "-b" ]; then
|
|
|
|
elif [ "$1" = "-b" ]; then
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/logb.txt
|
|
|
|
sudo journalctl -b all -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
|
|
|
|
cat /home/pi/CubeSatSim/logb.txt
|
|
|
|
echo -e "\nPushbutton Log file also saved as /home/pi/CubeSatSim/logb.txt"
|
|
|
|
echo -e "\nPushbutton Log file also saved as /home/pi/CubeSatSim/logb.txt"
|
|
|
|
elif [ "$1" = "-o" ]; then
|
|
|
|
elif [ "$1" = "-o" ]; then
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/logo.txt
|
|
|
|
sudo journalctl -b all -a -u OliveTin > /home/pi/CubeSatSim/logo.txt
|
|
|
|
sudo journalctl -b all -a -u OliveTin > /home/pi/CubeSatSim/logo.txt
|
|
|
|
cat /home/pi/CubeSatSim/logo.txt
|
|
|
|
cat /home/pi/CubeSatSim/logo.txt
|
|
|
|
echo -e "\nOliveTin Log file also saved as /home/pi/CubeSatSim/logo.txt"
|
|
|
|
echo -e "\nOliveTin Log file also saved as /home/pi/CubeSatSim/logo.txt"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|
|
|
|
sudo rm /home/pi/CubeSatSim/log.txt
|
|
|
|
sudo journalctl -b all -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
|
|
|
|
cat /home/pi/CubeSatSim/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"
|
|
|
|
|