From 300bd8560cf44c2f083d0734af5da5d0760de38e Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 30 Jun 2021 10:43:37 -0400 Subject: [PATCH] added full path for log files /home/pi/CubeSatSim/ --- log | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/log b/log index 547306af..87d5d773 100755 --- a/log +++ b/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