cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar

Use jsl to execute cmd to open up a ESP file

Hi all, I'm trying to present my 3D model on my jmp dashboard. The esp file is opened by executing a command through cmd window and opens up in a browser. I can add a wed page in the dashboard, but is it possible to use jsl to call cmd window and execute a command? Thank you!

1 REPLY 1
vince_faller
Super User (Alumni)

Re: Use jsl to execute cmd to open up a ESP file

Check out run program in the scripting index (Coping JSL Example here)

 

RP = Run Program(
	Executable( "PING.EXE"/*path probably not needed*/ ),
	Options( {"-n 5", "localhost"} ),
	ReadFunction( Function( {this}, Write( this << read ) ) )
);

Some things might need you to actually call cmd but most shouldn't.  I'm just trying to write all outputs to my userprofile

 

Names default to here(1);
RP = Run Program(
	Executable( "cmd"),
	Options( {"\[/c "ping localhost > C:\users\my_user\ping_results.log 2>&1]\"} ), 
	ReadFunction( Function( {this}, Write( this << read ) ) )
);

 

I use this discovery presentation all the time when working with run program.  

 

 

Vince Faller - Predictum