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%3Esceneggiatura%20automatica%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601332%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3E%3CP%3ECiao%2C%20%C3%A8%20possibile%20creare%20uno%20script%20sotto%20JMP%20che%20si%20avvia%20automaticamente%20ogni%20n%20minuti%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%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%3EPenso%20che%20tu%20possa%20creare%20un%20ciclo%20in%20JMP%20per%20farlo%2C%20ma%20sarebbe%20meglio%20usare%20il%20sistema%20operativo%20per%20pianificare%20l'attivit%C3%A0%20come%20possibile%20in%20Windows%20ecc.%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%3EInformazioni%20sull'Utilit%C3%A0%20di%20pianificazione%20-%20App%20Win32%20%7C%20Microsoft%20Impara%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%20suggerito%20di%20utilizzare%20lo%20scheduler%20del%20sistema%20operativo%20per%20riavviare%20periodicamente%20JMP.%3C%2FP%3E%0A%3CP%3EJMP%20ha%20anche%20una%20funzione%20schedule()%2C%20ma%20richiede%20di%20lasciare%20JMP%20in%20esecuzione.%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%3Efantastico%2C%20grazie%2C%20non%20ne%20ero%20a%20conoscenza%2C%20questo%20%C3%A8%20il%20motivo%20per%20cui%20la%20comunit%C3%A0%20di%20lettura%20%C3%A8%20molto%20utile!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EQuindi%20penso%20che%20la%20soluzione%20dipenda%20dall'ambiente%20e%20dai%20requisiti%20in%20dettaglio.%20Utilizziamo%20l'utilit%C3%A0%20di%20pianificazione%20del%20sistema%20operativo%2C%20in%20modo%20che%20per%20ogni%20esecuzione%20venga%20avviata%20una%20nuova%20istanza%20di%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%20ha%20scritto%3A%3CBR%20%2F%3E%3CP%3EPenso%20che%20tu%20possa%20creare%20un%20ciclo%20in%20JMP%20per%20farlo%2C%20ma%20sarebbe%20meglio%20usare%20il%20sistema%20operativo%20per%20pianificare%20l'attivit%C3%A0%20come%20possibile%20in%20Windows%20ecc.%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%3EInformazioni%20sull'Utilit%C3%A0%20di%20pianificazione%20-%20App%20Win32%20%7C%20Microsoft%20Impara%3C%2FA%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CBR%20%2F%3ENon%20dimenticare%20di%20aggiungere%20%2F%2F!%22%20alla%20prima%20riga%20se%20provi%20a%20eseguirlo%20tramite%20l'utilit%C3%A0%20di%20pianificazione%20(Windows).%20In%20questo%20modo%20verr%C3%A0%20eseguito%20automaticamente%20e%20non%20solo%20aperto.%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%3ELinea%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%3ENel%20mio%20caso%20non%20ho%20usato%20il%20%2F%2F!%2C%20perch%C3%A9%20l'ho%20trovato%20fastidioso%20quando%20aprendo%20lo%20script%20per%20la%20modifica%20sarebbe%20stato%20eseguito%20tutto%20il%20tempo%20(spesso%20me%20ne%20dimenticavo...).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EInvece%20in%20Win10%20utilizzando%20Task-Scheduler%20e%20aggiungendo%20JMP.exe%20come%20Programma%20e%20il%20percorso%20dello%20script%20come%20argomento%20facoltativo%2C%20JMP%20esegue%20lo%20script%20in%20modo%20definito%2C%20quindi%20%22%2F%2F!%22%20non%20%C3%A8%20necessario.%20Naturalmente%2C%20lo%20script%20deve%20chiudere%20JMP%20al%20termine%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%3EVedere%20Guida%20%26gt%3B%20Indice%20script.%20Quindi%20cercare%20la%20funzione%20Schedule().%20Questa%20funzione%20funziona%20interamente%20all'interno%20di%20JMP%20e%20non%20si%20basa%20sul%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.