Bonjour, est-il possible de faire un script sous JMP qui se lance automatiquement toutes les n minutes ? (JMP 17)
@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:
//!
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
@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:
//!
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(); ).
@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
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.
See Help > Scripting Index. Then search for the Schedule() function. This function works entirely within JMP and does not rely on the OS.