|
|
|
|
@ -8,8 +8,8 @@ if [ "$1" = "-h" ] ; then
|
|
|
|
|
echo " -t transmit"
|
|
|
|
|
echo " -c command and control"
|
|
|
|
|
echo " -p pacsat"
|
|
|
|
|
echo " -r rigctld"
|
|
|
|
|
echo " -f frequency"
|
|
|
|
|
echo " -r frequency control"
|
|
|
|
|
echo " -f frequency display"
|
|
|
|
|
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
|
|
|
|
|
@ -44,8 +44,9 @@ if [ "$REALTIME" = "1" ] ; then
|
|
|
|
|
elif [ "$1" = "-f" ] ; then
|
|
|
|
|
while true; do
|
|
|
|
|
cat /home/pi/CubeSatSim/frequency.txt
|
|
|
|
|
echo
|
|
|
|
|
# echo
|
|
|
|
|
sleep 5
|
|
|
|
|
echo "/b/b/b/b/b/b/b/b/b/b/b/b/b/b/b/b/b/b/b/b/b"
|
|
|
|
|
done
|
|
|
|
|
else
|
|
|
|
|
sudo journalctl -af -u cubesatsim # > /home/pi/CubeSatSim/log.txt
|
|
|
|
|
@ -69,8 +70,8 @@ else
|
|
|
|
|
echo -e "\nCommand and Control Log file also saved as /home/pi/CubeSatSim/logp.txt"
|
|
|
|
|
elif [ "$1" = "-r" ]; then
|
|
|
|
|
sudo journalctl -a -u frequency > /home/pi/CubeSatSim/logr.txt
|
|
|
|
|
cat /home/pi/CubeSatSim/logr.txt
|
|
|
|
|
echo -e "\nrigtcld Log file also saved as /home/pi/CubeSatSim/logr.txt"
|
|
|
|
|
cat /home/pi/CubeSatSim/logf.txt
|
|
|
|
|
echo -e "\nFrequency Log file also saved as /home/pi/CubeSatSim/logf.txt"
|
|
|
|
|
elif [ "$1" = "-f" ] ; then
|
|
|
|
|
cat /home/pi/CubeSatSim/frequency.txt
|
|
|
|
|
echo
|
|
|
|
|
|