added -r parameter for rpitx log stored as logr.txt

pull/101/head
alanbjohnston 5 years ago committed by GitHub
parent 8ca514680d
commit 666c2057b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

14
log

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

Loading…
Cancel
Save

Powered by TurnKey Linux.