]> Creatis software - CreaPhase.git/commitdiff
Launch script (by Sorina)
authorLoriane Weber <loriane.weber@creatis.insa-lyon.fr>
Fri, 3 Jun 2016 06:54:43 +0000 (08:54 +0200)
committerLoriane Weber <loriane.weber@creatis.insa-lyon.fr>
Fri, 3 Jun 2016 06:54:49 +0000 (08:54 +0200)
launch.sh [new file with mode: 0644]

diff --git a/launch.sh b/launch.sh
new file mode 100644 (file)
index 0000000..3964188
--- /dev/null
+++ b/launch.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+#Wrapper script allowing to remove tags introduced by VIP wrapper files and execute octave functions with --silent --eval options
+
+#Echo input parameters for debugging purposes
+echo $@
+
+#Remove tags
+params="$(echo $@ | sed 's/, /,/g')"
+params="$(echo $params | sed 's/[--][[:alpha:] ]*//g')"
+
+#Launch the program
+echo "launching octave  --silent --eval \"$params\""
+octave  --silent --eval \"$params\"
+