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%3Eautomatisches%20Skript%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601332%22%20slang%3D%22fr-FR%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%2C%20ist%20es%20m%C3%B6glich%2C%20ein%20Skript%20unter%20JMP%20zu%20erstellen%2C%20das%20automatisch%20alle%20n%20Minuten%20gestartet%20wird%3F%20(JMP17)%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%3ESkripterstellung%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%20Automatisches%20Skript%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601351%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20denke%2C%20Sie%20k%C3%B6nnen%20dazu%20eine%20Schleife%20in%20JMP%20erstellen%2C%20aber%20besser%20w%C3%A4re%20es%2C%20das%20Betriebssystem%20zu%20verwenden%2C%20um%20die%20Aufgabe%20so%20zu%20planen%2C%20wie%20es%20in%20Windows%20usw.%20m%C3%B6glich%20ist.%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%3EInformationen%20zum%20Taskplaner%20-%20Win32-Apps%20%7C%20Microsoft%20Learn%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%20Automatisches%20Skript%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%20vorgeschlagen%2C%20den%20OS-Scheduler%20zu%20verwenden%2C%20um%20JMP%20regelm%C3%A4%C3%9Fig%20neu%20zu%20starten.%3C%2FP%3E%0A%3CP%3EJMP%20hat%20auch%20eine%20schedule()-Funktion%2C%20aber%20es%20erfordert%2C%20dass%20JMP%20ausgef%C3%BChrt%20wird.%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%20Automatisches%20Skript%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%20danke%2C%20war%20mir%20nicht%20bewusst%2C%20deshalb%20ist%20die%20Lesegemeinschaft%20recht%20hilfreich!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIch%20denke%20also%2C%20die%20L%C3%B6sung%20h%C3%A4ngt%20von%20der%20Umgebung%20und%20den%20Anforderungen%20im%20Detail%20ab.%20Wir%20verwenden%20den%20Taskplaner%20des%20Betriebssystems%2C%20sodass%20f%C3%BCr%20jeden%20Lauf%20eine%20neue%20Instanz%20von%20JMP%20gestartet%20wird.%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%20Automatisches%20Skript%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%20schrieb%3A%3CBR%20%2F%3E%3CP%3EIch%20denke%2C%20Sie%20k%C3%B6nnen%20dazu%20eine%20Schleife%20in%20JMP%20erstellen%2C%20aber%20besser%20w%C3%A4re%20es%2C%20das%20Betriebssystem%20zu%20verwenden%2C%20um%20die%20Aufgabe%20so%20zu%20planen%2C%20wie%20es%20in%20Windows%20usw.%20m%C3%B6glich%20ist.%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%3EInformationen%20zum%20Taskplaner%20-%20Win32-Apps%20%7C%20Microsoft%20Learn%3C%2FA%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CBR%20%2F%3EVergessen%20Sie%20nicht%2C%20%2F%2F!%22%20in%20die%20erste%20Zeile%20einzuf%C3%BCgen%2C%20wenn%20Sie%20versuchen%2C%20dies%20%C3%BCber%20den%20Taskplaner%20(Windows)%20auszuf%C3%BChren.%20Dadurch%20wird%20es%20automatisch%20ausgef%C3%BChrt%20und%20nicht%20nur%20ge%C3%B6ffnet.%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%3ELinie%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%20Automatisches%20Skript%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601449%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIn%20meinem%20Fall%20habe%20ich%20das%20%2F%2F!%20nicht%20verwendet%2C%20weil%20ich%20es%20nervig%20fand%2C%20wenn%20ich%20das%20Skript%20zum%20Bearbeiten%20%C3%B6ffnen%20w%C3%BCrde%2C%20w%C3%BCrde%20es%20die%20ganze%20Zeit%20ausgef%C3%BChrt%20werden%20(habe%20ich%20oft%20vergessen%20...).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStattdessen%20f%C3%BChrt%20JMP%20in%20Win10%20mit%20Task-Scheduler%20und%20Hinzuf%C3%BCgen%20von%20JMP.exe%20als%20Programm%20und%20dem%20Skriptpfad%20als%20optionales%20Argument%20das%20Skript%20auf%20definierte%20Weise%20aus%2C%20also%20%22%2F%2F!%22%20wird%20nicht%20ben%C3%B6tigt.%20Nat%C3%BCrlich%20muss%20das%20Skript%20JMP%20nach%20Beendigung%20schlie%C3%9Fen%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%20Automatisches%20Skript%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESiehe%20Hilfe%20%26gt%3B%20Skriptindex.%20Suchen%20Sie%20dann%20nach%20der%20Funktion%20Schedule().%20Diese%20Funktion%20funktioniert%20vollst%C3%A4ndig%20innerhalb%20von%20JMP%20und%20ist%20nicht%20vom%20Betriebssystem%20abh%C3%A4ngig.%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.