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%22UPDATE%22%3E%E8%87%AA%E5%8A%A8%E8%84%9A%E6%9C%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601332%22%20slang%3D%22fr-FR%22%20mode%3D%22UPDATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%E6%98%AF%E5%90%A6%E5%8F%AF%E4%BB%A5%E5%9C%A8%20JMP%20%E4%B8%AD%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E6%AF%8F%20n%20%E5%88%86%E9%92%9F%E8%87%AA%E5%8A%A8%E5%90%AF%E5%8A%A8%E7%9A%84%E8%84%9A%E6%9C%AC%EF%BC%9F%20%EF%BC%88JMP%2017%EF%BC%89%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-601332%22%20slang%3D%22fr-FR%22%20mode%3D%22UPDATE%22%3E%3CLINGO-LABEL%3E%E8%87%AA%E5%8A%A8%E5%8C%96%E5%92%8C%E8%84%9A%E6%9C%AC%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3E%E8%B4%A8%E9%87%8F%E4%B8%8E%E5%B7%A5%E8%89%BA%E5%B7%A5%E7%A8%8B%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E8%87%AA%E5%8A%A8%E8%84%9A%E6%9C%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601351%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E8%AE%A4%E4%B8%BA%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%9C%A8%20JMP%20%E4%B8%AD%E6%9E%84%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%BE%AA%E7%8E%AF%E6%9D%A5%E6%89%A7%E8%A1%8C%E6%AD%A4%E6%93%8D%E4%BD%9C%EF%BC%8C%E4%BD%86%E6%9B%B4%E5%A5%BD%E7%9A%84%E5%81%9A%E6%B3%95%E6%98%AF%E4%BD%BF%E7%94%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E6%9D%A5%E5%AE%89%E6%8E%92%E4%BB%BB%E5%8A%A1%EF%BC%8C%E5%B0%B1%E5%83%8F%E5%9C%A8%20Windows%20%E7%AD%89%E4%B8%AD%E4%B8%80%E6%A0%B7%E3%80%82%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%E5%85%B3%E4%BA%8E%E4%BB%BB%E5%8A%A1%E8%AE%A1%E5%88%92%E7%A8%8B%E5%BA%8F%20-%20Win32%20%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%20%7C%E5%BE%AE%E8%BD%AF%E5%AD%A6%E4%B9%A0%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E8%87%AA%E5%8A%A8%E8%84%9A%E6%9C%AC%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%40%E4%B9%94%E6%B2%BB%3C%2FA%3E%E5%BB%BA%E8%AE%AE%E4%BD%BF%E7%94%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E8%B0%83%E5%BA%A6%E7%A8%8B%E5%BA%8F%E5%AE%9A%E6%9C%9F%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20JMP%E3%80%82%3C%2FP%3E%0A%3CP%3EJMP%20%E4%B9%9F%E6%9C%89%E4%B8%80%E4%B8%AA%20schedule()%20%E5%87%BD%E6%95%B0%EF%BC%8C%E4%BD%86%E5%AE%83%E9%9C%80%E8%A6%81%E8%AE%A9%20JMP%20%E4%BF%9D%E6%8C%81%E8%BF%90%E8%A1%8C%E7%8A%B6%E6%80%81%E3%80%82%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E8%87%AA%E5%8A%A8%E8%84%9A%E6%9C%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601410%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%A4%AA%E5%A5%BD%E4%BA%86%EF%BC%8C%E8%B0%A2%E8%B0%A2%EF%BC%8C%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%EF%BC%8C%E8%BF%99%E5%B0%B1%E6%98%AF%E9%98%85%E8%AF%BB%E7%A4%BE%E5%8C%BA%E9%80%80%E5%87%BA%E6%9C%89%E5%B8%AE%E5%8A%A9%E7%9A%84%E5%8E%9F%E5%9B%A0%EF%BC%81%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E6%89%80%E4%BB%A5%E6%88%91%E8%AE%A4%E4%B8%BA%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%E5%85%B7%E4%BD%93%E5%8F%96%E5%86%B3%E4%BA%8E%E7%8E%AF%E5%A2%83%E5%92%8C%E8%A6%81%E6%B1%82%E3%80%82%20%E6%88%91%E4%BB%AC%E4%BD%BF%E7%94%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84%E4%BB%BB%E5%8A%A1%E8%B0%83%E5%BA%A6%E7%A8%8B%E5%BA%8F%EF%BC%8C%E5%9B%A0%E6%AD%A4%E6%AF%8F%E6%AC%A1%E8%BF%90%E8%A1%8C%E9%83%BD%E4%BC%9A%E5%90%AF%E5%8A%A8%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%20JMP%20%E5%AE%9E%E4%BE%8B%E3%80%82%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E8%87%AA%E5%8A%A8%E8%84%9A%E6%9C%AC%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%40%E4%B9%94%E6%B2%BB%3C%2FA%3E%E5%86%99%E9%81%93%EF%BC%9A%3CBR%20%2F%3E%3CP%3E%E6%88%91%E8%AE%A4%E4%B8%BA%E6%82%A8%E5%8F%AF%E4%BB%A5%E5%9C%A8%20JMP%20%E4%B8%AD%E6%9E%84%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%BE%AA%E7%8E%AF%E6%9D%A5%E6%89%A7%E8%A1%8C%E6%AD%A4%E6%93%8D%E4%BD%9C%EF%BC%8C%E4%BD%86%E6%9C%80%E5%A5%BD%E6%98%AF%E4%BD%BF%E7%94%A8%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E6%9D%A5%E5%AE%89%E6%8E%92%E4%BB%BB%E5%8A%A1%EF%BC%8C%E5%B0%B1%E5%83%8F%E5%9C%A8%20Windows%20%E7%AD%89%E4%B8%AD%E4%B8%80%E6%A0%B7%E3%80%82%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%E5%85%B3%E4%BA%8E%E4%BB%BB%E5%8A%A1%E8%AE%A1%E5%88%92%E7%A8%8B%E5%BA%8F%20-%20Win32%20%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%20%7C%E5%BE%AE%E8%BD%AF%E5%AD%A6%E4%B9%A0%3C%2FA%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CBR%20%2F%3E%E5%A6%82%E6%9E%9C%E6%82%A8%E5%B0%9D%E8%AF%95%E9%80%9A%E8%BF%87%E4%BB%BB%E5%8A%A1%E8%AE%A1%E5%88%92%E7%A8%8B%E5%BA%8F%20(windows)%20%E8%BF%90%E8%A1%8C%E5%AE%83%EF%BC%8C%E8%AF%B7%E4%B8%8D%E8%A6%81%E5%BF%98%E8%AE%B0%E5%B0%86%20%2F%2F!%22%20%E6%B7%BB%E5%8A%A0%E5%88%B0%E7%AC%AC%E4%B8%80%E8%A1%8C%E3%80%82%20%E8%BF%99%E6%A0%B7%E5%AE%83%E5%B0%B1%E4%BC%9A%E8%87%AA%E5%8A%A8%E8%BF%90%E8%A1%8C%EF%BC%8C%E8%80%8C%E4%B8%8D%E4%BB%85%E4%BB%85%E6%98%AF%E6%89%93%E5%BC%80%E3%80%82%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%3E%E7%AC%AC%E4%B8%80%E8%A1%8C%EF%BC%9A%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E8%87%AA%E5%8A%A8%E8%84%9A%E6%9C%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601449%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E5%9C%A8%E6%88%91%E7%9A%84%E4%BE%8B%E5%AD%90%E4%B8%AD%EF%BC%8C%E6%88%91%E6%B2%A1%E6%9C%89%E4%BD%BF%E7%94%A8%20%2F%2F!%EF%BC%8C%E5%9B%A0%E4%B8%BA%E6%88%91%E5%8F%91%E7%8E%B0%E6%89%93%E5%BC%80%E8%84%9A%E6%9C%AC%E8%BF%9B%E8%A1%8C%E7%BC%96%E8%BE%91%E6%97%B6%E5%AE%83%E5%BE%88%E7%83%A6%E4%BA%BA%EF%BC%8C%E5%AE%83%E4%BC%9A%E4%B8%80%E7%9B%B4%E6%89%A7%E8%A1%8C%EF%BC%88%E6%88%91%E7%BB%8F%E5%B8%B8%E5%BF%98%E8%AE%B0......%EF%BC%89%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E8%80%8C%E4%B8%8D%E6%98%AF%E5%9C%A8%20Win10%20%E4%B8%AD%E4%BD%BF%E7%94%A8%20Task-Scheduler%EF%BC%8C%E5%B9%B6%E5%B0%86%20JMP.exe%20%E6%B7%BB%E5%8A%A0%E4%B8%BA%E7%A8%8B%E5%BA%8F%E5%B9%B6%E5%B0%86%E8%84%9A%E6%9C%AC%E8%B7%AF%E5%BE%84%E6%B7%BB%E5%8A%A0%E4%B8%BA%E5%8F%AF%E9%80%89%E5%8F%82%E6%95%B0%EF%BC%8CJMP%20%E4%BB%A5%E5%AE%9A%E4%B9%89%E7%9A%84%E6%96%B9%E5%BC%8F%E6%89%A7%E8%A1%8C%E8%84%9A%E6%9C%AC%EF%BC%8C%E5%9B%A0%E6%AD%A4%E2%80%9C%2F%2F!%E2%80%9D%E4%B8%8D%E9%9C%80%E8%A6%81%E3%80%82%20%E5%BD%93%E7%84%B6%EF%BC%8C%E8%84%9A%E6%9C%AC%E9%9C%80%E8%A6%81%E5%9C%A8%E5%AE%8C%E6%88%90%E5%90%8E%E5%85%B3%E9%97%AD%20JMP%20(%20Quit()%3B%20)%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-601548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E8%87%AA%E5%8A%A8%E8%84%9A%E6%9C%AC%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-601548%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E8%AF%B7%E5%8F%82%E9%98%85%E5%B8%AE%E5%8A%A9%20%26gt%3B%20%E8%84%9A%E6%9C%AC%E7%B4%A2%E5%BC%95%E3%80%82%20%E7%84%B6%E5%90%8E%E6%90%9C%E7%B4%A2%20Schedule()%20%E5%87%BD%E6%95%B0%E3%80%82%20%E8%AF%A5%E5%87%BD%E6%95%B0%E5%AE%8C%E5%85%A8%E5%9C%A8%20JMP%20%E4%B8%AD%E8%BF%90%E8%A1%8C%EF%BC%8C%E4%B8%8D%E4%BE%9D%E8%B5%96%E4%BA%8E%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E3%80%82%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.