How to let a PC run a Julia program automatically every time it is woken up?

I am using a Windows PC. I want the computer to run a Julia program automatically every time it is woken up. I could use Windows’ Task Scheduler to do this, but it wasn’t perfect. That’s because I found that the program didn’t run automatically unless I shut it down and turned it back on; And when I put the computer to Hibernate and then wake it up, the program doesn’t run automatically. I want to make the program run automatically in both cases, what is the best way?

Thanks!!!

1 Like

I think this question is not really related to Julia and would be more appropriate in a Windows forum or general question board.

That being said, I think the Windows Task Scheduler is the correct answer but perhaps you need to play a bit more with how to trigger your script. Does this link help you?

2 Likes

How about packaging your program in a Docker container and setting Docker Desktop to start automatically when Windows boots up?

2 Likes

Thank you very much!!! :handshake: :handshake: It does work!

If I may ask, I’m curious, how did you find the solution with such precision? :smiley:

I just typed into Google: “windows run script on wake up”
read the first 2 links to Superuser.com which both cover your answer. I found the second link to be a bit clearer so I chose that to share with you.

1 Like

Thanks a lot! :handshake: