Personal tools
You are here: Home Forum Use running a TUI script from console

running a TUI script from console

Up to Use

running a TUI script from console

Posted by Gerhard Holzinger at September 02. 2009

Hello.

I am trying to run TUI scripts from the command line in linux without the GUI.
But I have problems with it.

Invoking this command opens the GUI and runs the script. This works fine.
/opt/SALOME-MECA-2008.1-GPL/runSalomeMeca -u ./outTUI.py

When I try to run this without GUI with this command
/opt/SALOME-MECA-2008.1-GPL/runSalomeMeca -t -u ./outTUI.py

then I get an error message
ImportError: libSalomeLifeCycleCORBA.so.0: cannot open shared object file: No such file or directory

What am I doing wrong? How can I run the script without the GUI, or can i close the GUI and quit Salome with commands in the TUI script. I want to avoid the need to quit the GUI manually after the script has finished.

Can you help me?

Re: running a TUI script from console

Posted by allender at September 02. 2009

Hello  Gerhard,

Is it possible to print environment from python console?

Probably it can different in with or without GUI modes

Re: running a TUI script from console

Posted by Gerhard Holzinger at September 03. 2009

this may look like a stupid question, but what do you mean with print environment?

Re: running a TUI script from console

Posted by Sergey Mozokhin at September 03. 2009

Before run of standalone python interpreter you need to activate shell environment for SALOME (it set up LD_LIBRARY_PATH, PATH, PYTHONPATH variable to SALOME libs). It is usually done with help of csh or shell script which comes with SALOME. Have you done something like this?

 

Re: running a TUI script from console

Posted by Gerhard Holzinger at September 03. 2009

I haven't done any of this.

Can you describe what's to do?

Maybe this is not well described in the help documents or I haven't seen it.

Re: running a TUI script from console

Posted by Gerhard Holzinger at September 07. 2009

Finally I am a little bit closer to my goals.

I had no success with Salome 3.2.1 (of the DVD CAELinux) and Salome 4.1.4 (that's installed on my machine) I installed Salome 5.1.2.

Now running scripts in terminal mode is no problem anymore. I have absolutely no idea what's the reason for all this, but now adding the option -t for terminal mode does not issue error messages anymore.

 

Powered by Ploneboard
Document Actions