cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Browse apps to extend the software in the new JMP Marketplace
Choose Language Hide Translation Bar
myapaulogy
Level I

Execute workflow/jmpflow by command prompt or powershell etc.

We have quite a few analyzes that get written in jmp and then given to us to automate them. Our current process is to rewrite them in python, MatLab, etc. We want speed up development and use jmp for our automation.

 

How do you run jmpflow from the command line, powershell or python?

2 ACCEPTED SOLUTIONS

Accepted Solutions
mzwald
Staff

Re: Execute workflow/jmpflow by command prompt or powershell etc.

Save the JMP workflow as a JSL script.  This can be done from the red triangle of Workflow Builder > Export > Save to Script Window.  

 

Put path to jmp.exe in your path system variable, then you can call jmp.exe from the command line.  To run the script from the command line, call the .jsl file as an argument.

 

Something like

C:\>jmp.exe script.jsl

View solution in original post

myapaulogy
Level I

Re: Execute workflow/jmpflow by command prompt or powershell etc.

I do not see the Export Option in "Workflow Builder > Export > Save to Script Window". I do see the export option in "File > Export" but it is grayed out.

 

For others who have the same question/problem

I am manually copying over the generated "Step Code" from jmpflow to a jsl file (one by one).

 

The scripts will run on a windows machine.

https://community.jmp.com/t5/Discussions/calling-JMP-from-command-line-without-GUI/td-p/1619

It looks like you cannot run JMP headless (without the jmp gui opening) from the command line.

 

I am using the OLE Automation (c#) to run the scripts headless.

https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/ole-automation.shtml

 

View solution in original post

3 REPLIES 3
mzwald
Staff

Re: Execute workflow/jmpflow by command prompt or powershell etc.

Save the JMP workflow as a JSL script.  This can be done from the red triangle of Workflow Builder > Export > Save to Script Window.  

 

Put path to jmp.exe in your path system variable, then you can call jmp.exe from the command line.  To run the script from the command line, call the .jsl file as an argument.

 

Something like

C:\>jmp.exe script.jsl

myapaulogy
Level I

Re: Execute workflow/jmpflow by command prompt or powershell etc.

I do not see the Export Option in "Workflow Builder > Export > Save to Script Window". I do see the export option in "File > Export" but it is grayed out.

 

For others who have the same question/problem

I am manually copying over the generated "Step Code" from jmpflow to a jsl file (one by one).

 

The scripts will run on a windows machine.

https://community.jmp.com/t5/Discussions/calling-JMP-from-command-line-without-GUI/td-p/1619

It looks like you cannot run JMP headless (without the jmp gui opening) from the command line.

 

I am using the OLE Automation (c#) to run the scripts headless.

https://www.jmp.com/support/help/en/18.0/index.shtml#page/jmp/ole-automation.shtml

 

mzwald
Staff

Re: Execute workflow/jmpflow by command prompt or powershell etc.

Workflow Builder > Export > Save to Script Window  is specific to JMP 18

For JMP 17 it would be Workflow Builder > Save to Script Window