summaryrefslogtreecommitdiff
path: root/runCommand.m
diff options
context:
space:
mode:
Diffstat (limited to 'runCommand.m')
-rw-r--r--runCommand.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/runCommand.m b/runCommand.m
new file mode 100644
index 0000000..649ffd9
--- /dev/null
+++ b/runCommand.m
@@ -0,0 +1,10 @@
+function runCommand(command)
+
+ localPath = getenv('LD_LIBRARY_PATH');
+ systemPath = getenv('PATH');
+
+ setenv('LD_LIBRARY_PATH', localPath);
+ system(command);
+ setenv('LD_LIBRARY_PATH', systemPath);
+
+end \ No newline at end of file