cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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

Recommended Articles