- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » omc-start problem
omc-start problem
omc-start problem
Hi there,
I have problem with exporting OPENMODELICAHOME. It's working if I execute omc-start from terminal but ....
I dont want to execute it manualy. I'm opening this shell script with php script: <?php shell_exec("./omc-start; ent | grep OPENMODELICAHOME") ?>.
It gives me good output(HOME is there). But after that I put into terminal "ent" again and there is nothing like OPENMODELICAHOME.
I have to run shell_exec("./omc-start; /usr/lib/omc/bin/omc +d=interactive &") and then connect to omc and get some data from simulation. But simulation is not working without creating this OMHOME.
I'm sorry if this is not correct problem for this forum.
thank you
Re: omc-start problem
If you execute your PHP application and it sets an environment variable, like OPENMODELICAHOME, it should not be set in the terminal.
The new Linux releases don't even use omc-start script. http://openmodelica.org/index.php/downl … load-linux
They simply set OPENMODELICAHOME in /etc/profile.d/ so you that the environment is properly setup.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » omc-start problem