]> Creatis software - CreaPhase.git/blobdiff - launch.sh
Launch script (by Sorina)
[CreaPhase.git] / launch.sh
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\"
+