You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CubeSatSim/log

14 lines
420 B

#!/bin/bash
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 "\nLog 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
echo -e "\nLog file also saved as /home/pi/CubeSatSim/log.txt"
fi

Powered by TurnKey Linux.