cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-601332%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3Escript%20automatique%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601332%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3E%3CP%3EBonjour%2C%20est-il%20possible%20de%20faire%20un%20script%20sous%20JMP%20qui%20se%20lance%20automatiquement%20toutes%20les%20n%20minutes%20%3F%20(JMP%2017)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-601332%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EScripting%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-601351%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20script%20automatique%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601351%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20pense%20que%20vous%20pouvez%20cr%C3%A9er%20une%20boucle%20dans%20JMP%20pour%20le%20faire%2C%20mais%20il%20serait%20pr%C3%A9f%C3%A9rable%20d'utiliser%20le%20syst%C3%A8me%20d'exploitation%20pour%20planifier%20la%20t%C3%A2che%20comme%20possible%20dans%20Windows%2C%20etc.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Ftaskschd%2Fabout-the-task-scheduler%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%C3%80%20propos%20du%20Planificateur%20de%20t%C3%A2ches%20-%20Applications%20Win32%20%7C%20Microsoft%20Apprendre%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-601360%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20script%20automatique%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601360%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9474%22%20target%3D%22_blank%22%3E%40Georg%3C%2FA%3E%20sugg%C3%A9r%C3%A9%20d'utiliser%20le%20planificateur%20du%20syst%C3%A8me%20d'exploitation%20pour%20relancer%20JMP%20p%C3%A9riodiquement.%3C%2FP%3E%0A%3CP%3EJMP%20dispose%20%C3%A9galement%20d'une%20fonction%20schedule()%2C%20mais%20elle%20n%C3%A9cessite%20de%20laisser%20JMP%20en%20cours%20d'ex%C3%A9cution.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F17.0%2Findex.shtml%23page%2Fjmp%2Futility-functions.shtml%23ww2805822%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F17.0%2Findex.shtml%23page%2Fjmp%2Futility-functions.shtml%23ww2805822%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-601410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20script%20automatique%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Esuper%2C%20merci%2C%20je%20n'%C3%A9tais%20pas%20au%20courant%2C%20c'est%20la%20raison%20pour%20laquelle%20la%20communaut%C3%A9%20de%20lecture%20n'est%20plus%20utile%26nbsp%3B!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJe%20pense%20donc%20que%20la%20solution%20d%C3%A9pend%20de%20l'environnement%20et%20des%20exigences%20en%20d%C3%A9tail.%20Nous%20utilisons%20le%20planificateur%20de%20t%C3%A2ches%20du%20syst%C3%A8me%20d'exploitation%2C%20de%20sorte%20que%20pour%20chaque%20ex%C3%A9cution%2C%20une%20nouvelle%20instance%20de%20JMP%20est%20d%C3%A9marr%C3%A9e.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-601413%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20script%20automatique%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601413%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9474%22%20target%3D%22_blank%22%3E%40Georg%3C%2FA%3E%20%C3%A9crit%3A%3CBR%20%2F%3E%3CP%3EJe%20pense%20que%20vous%20pouvez%20cr%C3%A9er%20une%20boucle%20dans%20JMP%20pour%20le%20faire%2C%20mais%20il%20serait%20pr%C3%A9f%C3%A9rable%20d'utiliser%20le%20syst%C3%A8me%20d'exploitation%20pour%20planifier%20la%20t%C3%A2che%20comme%20possible%20dans%20Windows%2C%20etc.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fwindows%2Fwin32%2Ftaskschd%2Fabout-the-task-scheduler%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%C3%80%20propos%20du%20Planificateur%20de%20t%C3%A2ches%20-%20Applications%20Win32%20%7C%20Microsoft%20Apprendre%3C%2FA%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CBR%20%2F%3EN'oubliez%20pas%20d'ajouter%20le%20%2F%2F!%22%20%C3%A0%20la%20premi%C3%A8re%20ligne%20si%20vous%20essayez%20de%20l'ex%C3%A9cuter%20via%20le%20planificateur%20de%20t%C3%A2ches%20(Windows).%20C'est%20ainsi%20qu'il%20s'ex%C3%A9cutera%20automatiquement%20et%20pas%20seulement%20s'ouvrira.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F17.0%2Findex.shtml%23page%2Fjmp%2Frun-a-script.shtml%23%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F17.0%2Findex.shtml%23page%2Fjmp%2Frun-a-script.shtml%23%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELigne%201%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3E%2F%2F!%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-601449%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20script%20automatique%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601449%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDans%20mon%20cas%2C%20je%20n'ai%20pas%20utilis%C3%A9%20le%20%2F%2F!%2C%20car%20je%20trouvais%20cela%20ennuyeux%20lors%20de%20l'ouverture%20du%20script%20pour%20l'%C3%A9dition%20qu'il%20aurait%20ex%C3%A9cut%C3%A9%20tout%20le%20temps%20(j'oubliais%20souvent%20...).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAu%20lieu%20de%20cela%2C%20dans%20Win10%2C%20en%20utilisant%20Task-Scheduler%20et%20en%20ajoutant%20JMP.exe%20comme%20programme%20et%20le%20chemin%20du%20script%20comme%20argument%20facultatif%2C%20JMP%20ex%C3%A9cute%20le%20script%20de%20mani%C3%A8re%20d%C3%A9finie%2C%20donc%20%22%2F%2F!%22%20n'est%20pas%20n%C3%A9cessaire.%20Bien%20s%C3%BBr%2C%20le%20script%20doit%20fermer%20JMP%20apr%C3%A8s%20avoir%20termin%C3%A9%20(%20Quit()%3B%20).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-601548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%20%3A%20script%20automatique%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EVoir%20Aide%20%26gt%3B%20Index%20des%20scripts.%20Recherchez%20ensuite%20la%20fonction%20Schedule().%20Cette%20fonction%20fonctionne%20enti%C3%A8rement%20dans%20JMP%20et%20ne%20d%C3%A9pend%20pas%20du%20syst%C3%A8me%20d'exploitation.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
hcarr01
Level VI

script automatique

Bonjour, est-il possible de faire un script sous JMP qui se lance automatiquement toutes les n minutes ? (JMP 17)

1 ACCEPTED SOLUTION

Accepted Solutions
AApperson
Level II

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:

 

//!

 

View solution in original post

6 REPLIES 6
Georg
Level VII

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

Georg
AApperson
Level II

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:

 

//!

 

Georg
Level VII

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(); ).

Georg
Craige_Hales
Super User

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

 

Craige
Georg
Level VII

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.

 

Georg

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.