キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
言語を選択 翻訳バーを非表示

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 件の受理された解決策

受理された解決策
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();'

元の投稿で解決策を見る

2件の返信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

おすすめの記事