<?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: How to run/stop JSL scripts with Task Scheduler cleanly? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-run-stop-JSL-scripts-with-Task-Scheduler-cleanly/m-p/15041#M13947</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The scripting index example for quit() is one of my favorites.&amp;nbsp; Save your work first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 20:02:28 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2015-10-27T20:02:28Z</dc:date>
    <item>
      <title>How to run/stop JSL scripts with Task Scheduler cleanly?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-run-stop-JSL-scripts-with-Task-Scheduler-cleanly/m-p/15039#M13945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have automated some extraction/analysis/export tasks of mine with a few JSL scripts and I have been trying to make use of Task Scheduler to run them on a fixed schedule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured it would be easy enough, so I put the following into Task Scheduler. The script itself only takes about 10 seconds to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't seem to matter whether or not I put "//!" at the top of the script, it runs either way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;Program/script&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C:\...\jmp.exe&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;Add arguments (optional):&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"C:\...\myScript.jsl"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works when I ran the task manually but I can't seem to get it to stop, meaning that subsequent runs never end up running because the first is in a permanent state of:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"The task is currently running (0x41301)".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried making a simple batch file to do the same thing to run in Task Scheduler, but it arrives at the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="text-decoration: underline;"&gt;Batch File:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;START "" C:\...\jmp.exe "C:\...\myScript.jsl"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Wondering if anyone has had any success with automating JSL scripts and has any pointers?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;JP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 22:07:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-run-stop-JSL-scripts-with-Task-Scheduler-cleanly/m-p/15039#M13945</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-26T22:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to run/stop JSL scripts with Task Scheduler cleanly?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-run-stop-JSL-scripts-with-Task-Scheduler-cleanly/m-p/15040#M13946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add the appropriate exit command at the end of your batch and jsl script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;batch it's simply 'exit' and jsl it's 'exit();'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 17:47:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-run-stop-JSL-scripts-with-Task-Scheduler-cleanly/m-p/15040#M13946</guid>
      <dc:creator>msharp</dc:creator>
      <dc:date>2015-10-27T17:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to run/stop JSL scripts with Task Scheduler cleanly?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-run-stop-JSL-scripts-with-Task-Scheduler-cleanly/m-p/15041#M13947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The scripting index example for quit() is one of my favorites.&amp;nbsp; Save your work first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 20:02:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-run-stop-JSL-scripts-with-Task-Scheduler-cleanly/m-p/15041#M13947</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2015-10-27T20:02:28Z</dc:date>
    </item>
  </channel>
</rss>

