# Automatic resubmission of simulation with payu

**URL:** <https://forum.access-hive.org.au/t/automatic-resubmission-of-simulation-with-payu/3921>\
**Category:** Experiments\
**Tags:** help, cosima, access-om2, payu\
**Created:** [21 November 2024 05:30 UTC](https://forum.access-hive.org.au/t/automatic-resubmission-of-simulation-with-payu/3921 "2024-11-21T05:30:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pearseb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/pearseb/32/1033_2.png) [@pearseb](https://forum.access-hive.org.au/u/pearseb)\
**Post date:** [21 November 2024 05:30 UTC](https://forum.access-hive.org.au/t/automatic-resubmission-of-simulation-with-payu/3921/1 "2024-11-21T05:30:00Z")

</div>

Hi everyone,

Is an automatic resubmission of a simulation using payu as easy as placing:

_run: payu sweep; payu setup; payu run -f_

In your _userscripts_ option within the _config.yaml_ file?

Something like this?

_userscripts:_

- run: payu sweep; payu setup; payu run -f\*

Thanks!  
pearse

---

<div class="post-metadata">

**Author:** ![anton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/anton/32/1836_2.png) [@anton](https://forum.access-hive.org.au/u/anton)\
**Post date:** [21 November 2024 05:38 UTC](https://forum.access-hive.org.au/t/automatic-resubmission-of-simulation-with-payu/3921/2 "2024-11-21T05:38:01Z")

</div>

I think you want

`payu run -n N`

see

[https://payu.readthedocs.io/en/stable/usage.html#running-your-experiment](https://payu.readthedocs.io/en/stable/usage.html#running-your-experiment)

this will do the payu sweep & run steps for consecutive runs.

---

<div class="post-metadata">

**Author:** ![atteggiani](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/atteggiani/32/212_2.png) [@atteggiani](https://forum.access-hive.org.au/u/atteggiani)\
**Post date:** [2 December 2024 22:41 UTC](https://forum.access-hive.org.au/t/automatic-resubmission-of-simulation-with-payu/3921/3 "2024-12-02T22:41:24Z")

</div>


