added full path for log files /home/pi/CubeSatSim/

pull/132/head
alanbjohnston 5 years ago committed by GitHub
parent 036bc3ba73
commit 300bd8560c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
log

@ -3,11 +3,11 @@
echo -e "\nLog file script for CubeSatSim\n"
if [ "$1" = "-r" ]; then
sudo journalctl -a -u rpitx > logr.txt
sudo journalctl -a -u rpitx > /home/pi/CubeSatSim/logr.txt
cat logr.txt
echo -e "\nLog file also saved as /home/pi/CubeSatSim/logr.txt"
else
sudo journalctl -a -u cubesatsim > log.txt
sudo journalctl -a -u cubesatsim > /home/pi/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.