Personal tools
You are here: Home Forum Use Command line options

Command line options

Up to Use

Command line options

Posted by Arkajyoti Misra at August 14. 2012

I run Salome from the terminal like this:

~/salome/appli_V6_4_0/runAppli -t -u main.py

The input parameters for the geometry is read from an input file. The name of the input file is hard coded in main.py which creates a problem for batch jobs. Is there a way to pass on the input file name on the command line?

 

Arko

Re: Command line options

Posted by Saint Michael at August 15. 2012

Hi Arko

It's impossible to pass script arguments via runAppli args. As a workaround you can pass your file name via an environment variable.

St.Michael

Re: Command line options

Posted by Arkajyoti Misra at August 20. 2012

Thanks, St.Michael.

Re: Command line options

Posted by Jon Shimwell at February 17. 2017
this a a few years late but I recently found out how to pass arguments Salome via the command line and wanted to share.
try ...
salome scriptname.py args:1.6180,golden
which would pass two arguments (1.6180,golden) to the python script
further details can be found in the help section, type "salome -help -start" into the terminal
Powered by Ploneboard
Document Actions