# 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:** 1
**Showing post:** 7

<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.

---

_[View the full topic](https://discourse.openondemand.org/t/matlab-gui-start-time/4086)._
