<?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 Re: system command in Flexscript to run script on cmd line in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/system-command-in-flexscript-to-run-script-on-cmd-line/m-p/13563230#M65312</link>
    <description>&lt;P&gt;The runprogram() command takes command line arguments, and passes them to the WinExec function. To get the output of the script, you will need some way to detect when your script is finished, since this command does not block.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2019 14:33:27 GMT</pubDate>
    <dc:creator>JordanLJohnson</dc:creator>
    <dc:date>2019-07-31T14:33:27Z</dc:date>
    <item>
      <title>system command in Flexscript to run script on cmd line</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/system-command-in-flexscript-to-run-script-on-cmd-line/m-p/13563229#M65311</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 19.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I want to run a script on the command line and get the output of the script back to flexsim. I want to run python script and get the suggestion of ML algorithm in to the simulation.&lt;/P&gt;
&lt;P&gt;Example C++ code.&lt;/P&gt;
&lt;PRE&gt;std::string filename = "/home/abc/xyz/Learning.py";
std::string command = "python ";
command += filename;
system(command.c_str());&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;I want to get the output of the script and use that in simulation.&lt;/P&gt;
&lt;P&gt;Can anyone suggest the command like system which will be used to run the script on cmd line.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 13:47:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/system-command-in-flexscript-to-run-script-on-cmd-line/m-p/13563229#M65311</guid>
      <dc:creator>asb_praneeth</dc:creator>
      <dc:date>2019-07-31T13:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: system command in Flexscript to run script on cmd line</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/system-command-in-flexscript-to-run-script-on-cmd-line/m-p/13563230#M65312</link>
      <description>&lt;P&gt;The runprogram() command takes command line arguments, and passes them to the WinExec function. To get the output of the script, you will need some way to detect when your script is finished, since this command does not block.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 14:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/system-command-in-flexscript-to-run-script-on-cmd-line/m-p/13563230#M65312</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2019-07-31T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: system command in Flexscript to run script on cmd line</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/system-command-in-flexscript-to-run-script-on-cmd-line/m-p/13563231#M65313</link>
      <description>&lt;P&gt;If you want to wait for a return value, then you could use a C++ DLL instead of FlexScript.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://answers.flexsim.com/questions/51226/make-runprogram-wait-for-batch-file-bat-to-finish.html"&gt;How to let runprogram() wait for batch file (.bat) to finish&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 14:40:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/system-command-in-flexscript-to-run-script-on-cmd-line/m-p/13563231#M65313</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2019-07-31T14:40:23Z</dc:date>
    </item>
  </channel>
</rss>

