automatic scriptHello, is it possible to create a script in JMP that launches automatically every n minutes? (JMP 17)
Automation and ScriptingQuality and Process EngineeringRe: script automatiqueI 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
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
Re: script automatiquegreat, 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.
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:
//!
Re: script automatiqueIn 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(); ).
Re: script automatiqueSee Help > Scripting Index. Then search for the Schedule() function. This function works entirely within JMP and does not rely on the OS.