# Automatic code execution

Nuvolos support automated code execution upon app startup. This can be useful if you want to run some initialization steps upon each startup, or if you want to automatically start a calculation on app startup.

You can define a **startup.sh** file in the workspace (inside the running user application, it will be located at /files/startup.sh) that will be automatically executed in the background via bash upon app startup.

{% hint style="info" %}
The startup.sh bash script will be execute in the background, as a separate process. Thus, you cannot directly modify properties of the main application from it (e.g. visual editor font size, etc.). For such a use-case, consult the documentation of the application how to define command executed on each startup.
{% endhint %}

The stdout and stderr streams of the script are redirected to **/files/startup.log**, so the progress of the script can be tracked via its output in real time.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nuvolos.com/features/applications/automatic-code-execution.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
