<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Executing Jsl file through  a program in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Executing-Jsl-file-through-a-program/m-p/271145#M52767</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have .bat file that executes a jsl script. Jsl script needs to be run by "my_app.py"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OTH; I want to call this bat file in another jsl file.&lt;/P&gt;
&lt;P&gt;By following posts below;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Question about using .bat file to execute .JSL script" uid="5604" url="https://community.jmp.com/t5/Discussions/Question-about-using-bat-file-to-execute-JSL-script/m-p/5604#U5604" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Running a JSL script within another JSL script" uid="41804" url="https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41804#U41804" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="call .exe, let it run and open another .jsl after .exe closed" uid="193903" url="https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/193903#U193903" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried; Run program&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Run Program("c:\python-x64\python-x64.exe" -E "C:\Users\AppData\Roaming\SAS\JMP\Addins\my_app.py" "C:\jsl_script\my_script.jsl" /OutputPath="C:\jsl_script\my_script.txt" /Description="my_script" &amp;gt; "C:\jsl_script\my_script.log" 2&amp;gt;&amp;amp;1) &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But got this error;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joshua_0-1591492704350.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24420i84CF5CCD97591D43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joshua_0-1591492704350.png" alt="joshua_0-1591492704350.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can we execute cmd commands in jsl ?&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 23:28:21 GMT</pubDate>
    <dc:creator>joshua</dc:creator>
    <dc:date>2023-06-09T23:28:21Z</dc:date>
    <item>
      <title>Executing Jsl file through  a program</title>
      <link>https://community.jmp.com/t5/Discussions/Executing-Jsl-file-through-a-program/m-p/271145#M52767</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have .bat file that executes a jsl script. Jsl script needs to be run by "my_app.py"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OTH; I want to call this bat file in another jsl file.&lt;/P&gt;
&lt;P&gt;By following posts below;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Question about using .bat file to execute .JSL script" uid="5604" url="https://community.jmp.com/t5/Discussions/Question-about-using-bat-file-to-execute-JSL-script/m-p/5604#U5604" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="Running a JSL script within another JSL script" uid="41804" url="https://community.jmp.com/t5/Discussions/Running-a-JSL-script-within-another-JSL-script/m-p/41804#U41804" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-MESSAGE title="call .exe, let it run and open another .jsl after .exe closed" uid="193903" url="https://community.jmp.com/t5/Discussions/call-exe-let-it-run-and-open-another-jsl-after-exe-closed/m-p/193903#U193903" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tried; Run program&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Run Program("c:\python-x64\python-x64.exe" -E "C:\Users\AppData\Roaming\SAS\JMP\Addins\my_app.py" "C:\jsl_script\my_script.jsl" /OutputPath="C:\jsl_script\my_script.txt" /Description="my_script" &amp;gt; "C:\jsl_script\my_script.log" 2&amp;gt;&amp;amp;1) &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But got this error;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="joshua_0-1591492704350.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/24420i84CF5CCD97591D43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="joshua_0-1591492704350.png" alt="joshua_0-1591492704350.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can we execute cmd commands in jsl ?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:28:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Executing-Jsl-file-through-a-program/m-p/271145#M52767</guid>
      <dc:creator>joshua</dc:creator>
      <dc:date>2023-06-09T23:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Jsl file through  a program</title>
      <link>https://community.jmp.com/t5/Discussions/Executing-Jsl-file-through-a-program/m-p/271289#M52801</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/17409"&gt;@joshua&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am a bit confused by what you are trying to do. However, I have attached a script written for the book JSL Companion, Applications of the JMP Scripting Language, Second Edition. For &lt;STRONG&gt;Run Program()&amp;nbsp;&lt;/STRONG&gt;your options need sto be specified in a list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope the examples and comments provided in the attached script will help you. The error message makes sense given the syntax note excerpted from the script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;/* Syntax
rp_obj = Run Program( Executable("path/filename.exe"), Options({"/a", "/b", "..."}),
           Read Function(expression), 
           Write Function(expression),
           Parameter(expression)   	
        ); 

Description:  Runs an external program specified by the Executable argument, with the command line
arguments specified by the Options argument.

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2020 06:53:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Executing-Jsl-file-through-a-program/m-p/271289#M52801</guid>
      <dc:creator>gzmorgan0</dc:creator>
      <dc:date>2020-06-08T06:53:27Z</dc:date>
    </item>
  </channel>
</rss>

