|
|
|
|
@ -8,6 +8,7 @@ if [ "$1" = "-h" ] ; then
|
|
|
|
|
echo " -t transmit"
|
|
|
|
|
echo " -c command and control"
|
|
|
|
|
echo " -p pacsat"
|
|
|
|
|
echo " -r rigctld"
|
|
|
|
|
echo "Default is the log is dumpted to the screen and written to a file."
|
|
|
|
|
echo "If an additional r is included, the log is realtime, and exits with a Control-C"
|
|
|
|
|
echo
|
|
|
|
|
@ -25,7 +26,7 @@ if [ "$REALTIME" = "1" ] ; then
|
|
|
|
|
echo
|
|
|
|
|
sleep 2
|
|
|
|
|
|
|
|
|
|
if [ "$1" = "-r" ] || [ "$1" = "-t" ] ; then
|
|
|
|
|
if [ "$1" = "-t" ] ; then
|
|
|
|
|
sudo journalctl -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"
|
|
|
|
|
@ -37,6 +38,8 @@ if [ "$REALTIME" = "1" ] ; then
|
|
|
|
|
sudo journalctl -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 rigctld # > /home/pi/CubeSatSim/logr.txt
|
|
|
|
|
else
|
|
|
|
|
sudo journalctl -af -u cubesatsim # > /home/pi/CubeSatSim/log.txt
|
|
|
|
|
# cat /home/pi/CubeSatSim/log.txt
|
|
|
|
|
@ -45,7 +48,7 @@ if [ "$REALTIME" = "1" ] ; then
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
|
|
if [ "$1" = "-r" ] || [ "$1" = "-t" ] ; then
|
|
|
|
|
if [ "$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"
|
|
|
|
|
@ -57,6 +60,10 @@ else
|
|
|
|
|
sudo journalctl -a -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 -a -u rigctld > /home/pi/CubeSatSim/logr.txt
|
|
|
|
|
cat /home/pi/CubeSatSim/logr.txt
|
|
|
|
|
echo -e "\nrigtcld Log file also saved as /home/pi/CubeSatSim/logr.txt"
|
|
|
|
|
else
|
|
|
|
|
sudo journalctl -a -u cubesatsim > /home/pi/CubeSatSim/log.txt
|
|
|
|
|
cat /home/pi/CubeSatSim/log.txt
|
|
|
|
|
|