From 3e1357f09c386146438fb40bc5db0cd914395ffa Mon Sep 17 00:00:00 2001 From: GroundStation <foo@bar> Date: Mon, 30 Jan 2017 14:22:46 -0600 Subject: [PATCH] groundStation: itegrate scripts --- groundStation/scripts/setpid_batch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 groundStation/scripts/setpid_batch.sh diff --git a/groundStation/scripts/setpid_batch.sh b/groundStation/scripts/setpid_batch.sh old mode 100644 new mode 100755 index 2525b2bce..3702acaec --- a/groundStation/scripts/setpid_batch.sh +++ b/groundStation/scripts/setpid_batch.sh @@ -2,7 +2,7 @@ # Use default filename if it wasn't given at the command line if [ $# -eq 0 ]; then - filename="parameters.txt" + filename="scripts/parameters.txt" else filename=$1 fi @@ -14,4 +14,4 @@ regex='(lat|long|height|pitch|roll|yaw|pitchv|rollv|yawv) (p|i|d) ([-+]?[0-9]*\. awk_prog='{print "./Cli setpid" " " "--" $1 " " "-" $2 " " $3}' # Search, parse, and execute ./Cli commands -grep -E "$regex" $filename | awk "$awk_prog" | bash +grep -E "$regex" $filename | awk "$awk_prog" | bash \ No newline at end of file -- GitLab