- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
automatic script
Hello, is it possible to create a script in JMP that launches automatically every n minutes? (JMP 17)
This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: script automatique
@Georg wrote:I think you can build a loop in JMP to do so, but better would be to use the Operating System to schedule the task like possible in Windows etc.
About the Task Scheduler - Win32 apps | Microsoft Learn
Don't forget to add the //!" to the first line if you try to run this via task scheduler (windows). This is so it will automatically run and not just open.
https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/run-a-script.shtml#
Line1:
//!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: script automatique
I think you can build a loop in JMP to do so, but better would be to use the Operating System to schedule the task like possible in Windows etc.
About the Task Scheduler - Win32 apps | Microsoft Learn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: script automatique
@Georg wrote:I think you can build a loop in JMP to do so, but better would be to use the Operating System to schedule the task like possible in Windows etc.
About the Task Scheduler - Win32 apps | Microsoft Learn
Don't forget to add the //!" to the first line if you try to run this via task scheduler (windows). This is so it will automatically run and not just open.
https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/run-a-script.shtml#
Line1:
//!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: script automatique
In my case I have not used the //!, because I found it annoying when opening the script for editing it would have executed all the time (I often forgot ...).
Instead in Win10 using Task-Scheduler, and adding JMP.exe as Program and the script path as optional argument, JMP executes the script in defined way, so "//!" is not needed. Of course, the script needs to close JMP after finishing ( Quit(); ).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: script automatique
@Georg suggested using the OS scheduler to relaunch JMP periodically.
JMP also has a schedule() function, but it requires leaving JMP running.
https://www.jmp.com/support/help/en/17.0/index.shtml#page/jmp/utility-functions.shtml#ww2805822
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: script automatique
great, thanks, was not aware of, that's the reason why reading community is quit helpful!
So I think the solution depends on the environment and requirement in detail. We use task scheduler of operating system, so that for each run a new instance of JMP is started.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: script automatique
See Help > Scripting Index. Then search for the Schedule() function. This function works entirely within JMP and does not rely on the OS.