cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-15039%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20Task%20Scheduler%20%E5%B9%B2%E5%87%80%E5%9C%B0%E8%BF%90%E8%A1%8C%2F%E5%81%9C%E6%AD%A2%20JSL%20%E8%84%9A%E6%9C%AC%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-15039%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E4%BD%BF%E7%94%A8%E4%B8%80%E4%BA%9B%20JSL%20%E8%84%9A%E6%9C%AC%E8%87%AA%E5%8A%A8%E5%8C%96%E4%BA%86%E6%88%91%E7%9A%84%E4%B8%80%E4%BA%9B%E6%8F%90%E5%8F%96%2F%E5%88%86%E6%9E%90%2F%E5%AF%BC%E5%87%BA%E4%BB%BB%E5%8A%A1%EF%BC%8C%E5%B9%B6%E4%B8%94%E6%88%91%E4%B8%80%E7%9B%B4%E5%9C%A8%E5%B0%9D%E8%AF%95%E4%BD%BF%E7%94%A8%20Task%20Scheduler%20%E6%8C%89%E5%9B%BA%E5%AE%9A%E8%AE%A1%E5%88%92%E8%BF%90%E8%A1%8C%E5%AE%83%E4%BB%AC%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E6%88%91%E8%AE%A4%E4%B8%BA%E8%BF%99%E5%BE%88%E5%AE%B9%E6%98%93%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E5%B0%86%E4%BB%A5%E4%B8%8B%E5%86%85%E5%AE%B9%E6%94%BE%E5%85%A5%E4%BB%BB%E5%8A%A1%E8%AE%A1%E5%88%92%E7%A8%8B%E5%BA%8F%E4%B8%AD%E3%80%82%20%E8%84%9A%E6%9C%AC%E6%9C%AC%E8%BA%AB%E5%8F%AA%E9%9C%80%E5%A4%A7%E7%BA%A6%2010%20%E7%A7%92%E5%8D%B3%E5%8F%AF%E8%BF%90%E8%A1%8C%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E6%88%91%E6%98%AF%E5%90%A6%E6%94%BE%E2%80%9C%2F%2F%EF%BC%81%E2%80%9D%E4%BC%BC%E4%B9%8E%E5%B9%B6%E4%B8%8D%E9%87%8D%E8%A6%81%E3%80%82%E5%9C%A8%E8%84%9A%E6%9C%AC%E7%9A%84%E9%A1%B6%E9%83%A8%EF%BC%8C%E5%AE%83%E4%BB%A5%E4%BB%BB%E4%BD%95%E4%B8%80%E7%A7%8D%E6%96%B9%E5%BC%8F%E8%BF%90%E8%A1%8C%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22text-decoration%3A%20underline%3B%22%3E%3CEM%3E%E7%A8%8B%E5%BA%8F%2F%E8%84%9A%E6%9C%AC%3C%2FEM%3E%3C%2FSPAN%3E%3CEM%3E%3A%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EC%3A%5C...%5Cjmp.exe%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CEM%20style%3D%22text-decoration%3A%20underline%3B%22%3E%E6%B7%BB%E5%8A%A0%E5%8F%82%E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%BF%90%E8%A1%8C%EF%BC%8C%E4%BD%86%E7%BB%93%E6%9E%9C%E7%9B%B8%E5%90%8C%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CEM%20style%3D%22text-decoration%3A%20underline%3B%22%3E%E6%89%B9%E5%A4%84%E7%90%86%E6%96%87%E4%BB%B6%EF%BC%9A%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%E5%BC%80%E5%A7%8B%20%22%22%20C%3A%5C...%5Cjmp.exe%20%22C%3A%5C...%5CmyScript.jsl%22%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3E%E6%83%B3%E7%9F%A5%E9%81%93%E6%98%AF%E5%90%A6%E6%9C%89%E4%BA%BA%E5%9C%A8%E8%87%AA%E5%8A%A8%E5%8C%96%20JSL%20%E8%84%9A%E6%9C%AC%E6%96%B9%E9%9D%A2%E5%8F%96%E5%BE%97%E4%BA%86%E6%88%90%E5%8A%9F%E5%B9%B6%E4%B8%94%E6%9C%89%E4%BB%BB%E4%BD%95%E6%8C%87%E7%A4%BA%EF%BC%9F%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%E8%B0%A2%E8%B0%A2%EF%BC%8C%3C%2FP%3E%3CP%3EJ.P%3C%2FP%3E%3CP%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-15041%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20Task%20Scheduler%20%E5%B9%B2%E5%87%80%E5%9C%B0%E8%BF%90%E8%A1%8C%2F%E5%81%9C%E6%AD%A2%20JSL%20%E8%84%9A%E6%9C%AC%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-15041%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Equit()%20%E7%9A%84%E8%84%9A%E6%9C%AC%E7%B4%A2%E5%BC%95%E7%A4%BA%E4%BE%8B%E6%98%AF%E6%88%91%E7%9A%84%E6%9C%80%E7%88%B1%E4%B9%8B%E4%B8%80%E3%80%82%E5%85%88%E4%BF%9D%E5%AD%98%E4%BD%A0%E7%9A%84%E5%B7%A5%E4%BD%9C%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-15040%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20Task%20Scheduler%20%E5%B9%B2%E5%87%80%E5%9C%B0%E8%BF%90%E8%A1%8C%2F%E5%81%9C%E6%AD%A2%20JSL%20%E8%84%9A%E6%9C%AC%EF%BC%9F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-15040%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%8F%AA%E9%9C%80%E5%9C%A8%E6%89%B9%E5%A4%84%E7%90%86%E5%92%8C%20jsl%20%E8%84%9A%E6%9C%AC%E7%9A%84%E6%9C%AB%E5%B0%BE%E6%B7%BB%E5%8A%A0%E9%80%82%E5%BD%93%E7%9A%84%E9%80%80%E5%87%BA%E5%91%BD%E4%BB%A4%E3%80%82%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Ebatch%20%E5%AE%83%E5%8F%AA%E6%98%AF'exit'%20%E5%92%8C%20jsl%20%E5%AE%83%E6%98%AF'exit()%3B'%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar

How to run/stop JSL scripts with Task Scheduler cleanly?

Hello,

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.

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.

It doesn't seem to matter whether or not I put "//!" at the top of the script, it runs either way.

Program/script:

C:\...\jmp.exe

Add arguments (optional):

"C:\...\myScript.jsl"

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:

"The task is currently running (0x41301)".

I tried making a simple batch file to do the same thing to run in Task Scheduler, but it arrives at the same result.

Batch File:

START "" C:\...\jmp.exe "C:\...\myScript.jsl"

Wondering if anyone has had any success with automating JSL scripts and has any pointers?

Thanks,

JP

1 ACCEPTED SOLUTION

Accepted Solutions
msharp
Super User (Alumni)

Re: How to run/stop JSL scripts with Task Scheduler cleanly?

Just add the appropriate exit command at the end of your batch and jsl script.

batch it's simply 'exit' and jsl it's 'exit();'

View solution in original post

2 REPLIES 2
msharp
Super User (Alumni)

Re: How to run/stop JSL scripts with Task Scheduler cleanly?

Just add the appropriate exit command at the end of your batch and jsl script.

batch it's simply 'exit' and jsl it's 'exit();'

Craige_Hales
Super User

Re: How to run/stop JSL scripts with Task Scheduler cleanly?

The scripting index example for quit() is one of my favorites.  Save your work first.

Craige

Recommended Articles