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%3Egui%C3%B3n%20autom%C3%A1tico%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601332%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3E%3CP%3EHola%2C%20%C2%BFes%20posible%20hacer%20un%20script%20bajo%20JMP%20que%20se%20inicie%20autom%C3%A1ticamente%20cada%20n%20minutos%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%3Esecuencias%20de%20comandos%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%3A%20script%20automatico%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601351%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECreo%20que%20puede%20crear%20un%20bucle%20en%20JMP%20para%20hacerlo%2C%20pero%20ser%C3%ADa%20mejor%20usar%20el%20sistema%20operativo%20para%20programar%20la%20tarea%20como%20es%20posible%20en%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%3EAcerca%20del%20Programador%20de%20tareas%3A%20aplicaciones%20Win32%20%7C%20aprender%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%3A%20script%20automatico%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%20sugiri%C3%B3%20usar%20el%20programador%20del%20sistema%20operativo%20para%20reiniciar%20JMP%20peri%C3%B3dicamente.%3C%2FP%3E%0A%3CP%3EJMP%20tambi%C3%A9n%20tiene%20una%20funci%C3%B3n%20de%20programaci%C3%B3n()%2C%20pero%20requiere%20dejar%20JMP%20ejecut%C3%A1ndose.%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%3A%20script%20automatico%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Egenial%2C%20gracias%2C%20no%20estaba%20al%20tanto%2C%20%C2%A1esa%20es%20la%20raz%C3%B3n%20por%20la%20cual%20la%20comunidad%20de%20lectura%20es%20bastante%20%C3%BAtil!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%C3%AD%20que%20creo%20que%20la%20soluci%C3%B3n%20depende%20del%20entorno%20y%20los%20requisitos%20en%20detalle.%20Utilizamos%20el%20programador%20de%20tareas%20del%20sistema%20operativo%2C%20de%20modo%20que%20para%20cada%20ejecuci%C3%B3n%20se%20inicie%20una%20nueva%20instancia%20de%20JMP.%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%3A%20script%20automatico%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%20escribi%C3%B3%3A%3CBR%20%2F%3E%3CP%3ECreo%20que%20puede%20crear%20un%20bucle%20en%20JMP%20para%20hacerlo%2C%20pero%20ser%C3%ADa%20mejor%20usar%20el%20sistema%20operativo%20para%20programar%20la%20tarea%20como%20es%20posible%20en%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%3EAcerca%20del%20Programador%20de%20tareas%3A%20aplicaciones%20Win32%20%7C%20aprender%3C%2FA%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CBR%20%2F%3ENo%20olvide%20agregar%20%2F%2F!%22%20a%20la%20primera%20l%C3%ADnea%20si%20intenta%20ejecutar%20esto%20a%20trav%C3%A9s%20del%20programador%20de%20tareas%20(Windows).%20Esto%20es%20para%20que%20se%20ejecute%20autom%C3%A1ticamente%20y%20no%20solo%20se%20abra.%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%3EL%C3%ADnea%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%3A%20script%20automatico%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601449%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEn%20mi%20caso%20no%20he%20usado%20el%20%2F%2F!%2C%20porque%20me%20resultaba%20molesto%20al%20abrir%20el%20script%20para%20editarlo%20se%20hubiera%20ejecutado%20todo%20el%20tiempo%20(se%20me%20olvidaba%20muchas%20veces...).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEn%20cambio%2C%20en%20Win10%20usando%20Task-Scheduler%20y%20agregando%20JMP.exe%20como%20programa%20y%20la%20ruta%20del%20script%20como%20argumento%20opcional%2C%20JMP%20ejecuta%20el%20script%20de%20manera%20definida%2C%20por%20lo%20que%20%22%2F%2F!%22%20no%20es%20necesario.%20Por%20supuesto%2C%20el%20script%20debe%20cerrar%20JMP%20despu%C3%A9s%20de%20finalizar%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%3A%20script%20automatico%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EConsulte%20Ayuda%20%26gt%3B%20%C3%8Dndice%20de%20secuencias%20de%20comandos.%20Luego%20busque%20la%20funci%C3%B3n%20Schedule().%20Esta%20funci%C3%B3n%20funciona%20completamente%20dentro%20de%20JMP%20y%20no%20depende%20del%20sistema%20operativo.%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.