# MATLAB GUI start time

**URL:** <https://discourse.openondemand.org/t/matlab-gui-start-time/4086>\
**Category:** Get Help\
**Tags:** question\
**Created:** [March 3, 2025, 7:59pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086 "2025-03-03T19:59:05Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![runlolarun](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/runlolarun/32/633_2.png) [@runlolarun](https://discourse.openondemand.org/u/runlolarun)\
**Post date:** [March 3, 2025, 7:59pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/1 "2025-03-03T19:59:05Z")

</div>

Hello, everyone.

I’m setting up Matlab and have a question about start up. As soon as I press “Launch MATLAB” after a successful job start, I get connected to TurboVNC. It takes another minute or so for Matlab to start. I am wondering if there is a way to wait for MATLAB to fully start before “Launch MATLAB” option is available. What is a common approach to this problem?

Thank you!

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 5, 2025, 8:59pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/2 "2025-03-05T20:59:10Z")

</div>

Yea I don’t know if there’s a lot we can do about that. The mechanism to write the connection file (where it turns the job from Starting to Running) is not really in the users control.

---

<div class="post-metadata">

**Author:** ![runlolarun](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/runlolarun/32/633_2.png) [@runlolarun](https://discourse.openondemand.org/u/runlolarun)\
**Post date:** [March 6, 2025, 1:48pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/3 "2025-03-06T13:48:02Z")

</div>

Thank you for responding.

What do you guys do in this situation? Just let users wait?

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 6, 2025, 3:19pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/4 "2025-03-06T15:19:12Z")

</div>

Yea pretty much. I’m not aware of any workarounds.

---

<div class="post-metadata">

**Author:** ![runlolarun](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/runlolarun/32/633_2.png) [@runlolarun](https://discourse.openondemand.org/u/runlolarun)\
**Post date:** [March 6, 2025, 3:31pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/5 "2025-03-06T15:31:48Z")

</div>

Thank you very much. Have a wonderful day.

---

<div class="post-metadata">

**Author:** ![mjbludwig](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mjbludwig/32/684_2.png) [@mjbludwig](https://discourse.openondemand.org/u/mjbludwig)\
**Post date:** [March 11, 2025, 6:32pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/6 "2025-03-11T18:32:40Z")

</div>

I will also add that in the various deployments I have done and have seen, a simple disclaimer saying matlab takes a sec to load is all that is ever done.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [April 4, 2025, 2:45pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/7 "2025-04-04T14:45:32Z")

</div>

Apologies for this - but I did not think about this question hard enough. I did in [Show password using view.html.erb - #4 by jeff.ohrstrom](https://discourse.openondemand.org/t/show-password-using-view-html-erb/4158/4)

Where I answered:

You could try to add a `sleep 3` or something similar in `after.sh.erb`. If you look at `job_script_content.sh` you’ll see the execution flow. `after.sh.erb` is invoked after the script, but before it creates the yml that will show the connect button. So I think this is the spot to wait/sleep/verify before moving on.

And to add more to that answer: the `after.sh.erb` blocks execution. So if you sleep in it, it will actually halt the entire script and then after the `after.sh.erb` script completes will it write the `connection.yml` which will turn your card from starting to running.

---

<div class="post-metadata">

**Author:** ![runlolarun](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/runlolarun/32/633_2.png) [@runlolarun](https://discourse.openondemand.org/u/runlolarun)\
**Post date:** [April 7, 2025, 2:27pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/8 "2025-04-07T14:27:03Z")

</div>

thank you very much! That’s a great idea.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [October 4, 2025, 2:27pm UTC](https://discourse.openondemand.org/t/matlab-gui-start-time/4086/9 "2025-10-04T14:27:33Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
