cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
] />

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Ronaldo
Level II

How to Schedule JSL and Python Scripts Sequentially in JMP 19

"I am a JMP 19 user. I would like to automate a JSL script to run every morning at 7:00 AM, which fetches data from Oracle via ODBC, updates the data table, and saves it as an .xlsx file. Subsequently, I want to execute a Python script at 8:00 AM that imports that .xlsx file, performs various operations, and sends the results via email. I already have both the JSL and .py files—how can I automate this entire workflow?"
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to Schedule JSL and Python Scripts Sequentially in JMP 19

Hi Ronaldo,

Generally you need Admin privileges to run scheduled tasks on Windows if the operation works outside of your user folders. You will likely need "Log on as a batch job" permission as well.  If your IT group won't give you permissions for this, you can start JMP manually and try to use the Schedule function in JSL, but that may constrain what you can do to within the JMP session.

 

Brian Corcoran

JMP Development

View solution in original post

6 REPLIES 6
jthi
Super User

Re: How to Schedule JSL and Python Scripts Sequentially in JMP 19

If you are using Windows you could use Task Scheduler

-Jarmo
Ronaldo
Level II

Re: How to Schedule JSL and Python Scripts Sequentially in JMP 19

I’m already aware of that, but for some reason, it’s not working on my PC. Are there any other ways to handle this?
jthi
Super User

Re: How to Schedule JSL and Python Scripts Sequentially in JMP 19

First I would try to figure out what is the issue with Task Scheduler. Next I would try to google some trustworthy scheduling options. I have no proper recommendations as I have been fine with Task Scheduler or different Python based orchestrators for scheduling Python ETL.

-Jarmo

Re: How to Schedule JSL and Python Scripts Sequentially in JMP 19

Hi Ronaldo,

Generally you need Admin privileges to run scheduled tasks on Windows if the operation works outside of your user folders. You will likely need "Log on as a batch job" permission as well.  If your IT group won't give you permissions for this, you can start JMP manually and try to use the Schedule function in JSL, but that may constrain what you can do to within the JMP session.

 

Brian Corcoran

JMP Development

Craige_Hales
Super User

Re: How to Schedule JSL and Python Scripts Sequentially in JMP 19

There are quite a few Q&A on this site about task scheduler on win. 

You should not try to use the JMP scheduler function for an app that needs to run long term; you need something like the OS task scheduler that will restart when the machine restarts. I think some of the Q&A may have been about how to get a started-but-not-logged-in machine to run JMP.

JMP can be started from the command line with a .jsl file to execute, and that is probably what you want from the win task scheduler.

Craige
lwx228
Level VIII

Re: How to Schedule JSL and Python Scripts Sequentially in JMP 19

I'm using a simple method:

Run it at a scheduled time in AutoHotkey because I have a large AHK that runs as soon as the AutoHotkey boots up.

AutoHotkey is so useful.

Recommended Articles