# Issues with state scripts in directory-artifact-gen

**URL:** <https://hub.mender.io/t/issues-with-state-scripts-in-directory-artifact-gen/2298>\
**Category:** General Discussions\
**Created:** [August 9, 2020, 12:39pm UTC](https://hub.mender.io/t/issues-with-state-scripts-in-directory-artifact-gen/2298 "2020-08-09T12:39:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamanRatna](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@SamanRatna](https://hub.mender.io/u/SamanRatna)\
**Post date:** [August 9, 2020, 12:39pm UTC](https://hub.mender.io/t/issues-with-state-scripts-in-directory-artifact-gen/2298/1 "2020-08-09T12:39:14Z")

</div>

What is the ‘script’ in ’ -T script ’ on the code:

mender-artifact write module-image -T script -n my-state\_script-1.0 -t raspberrypi3 -o ~/Downloads/my-state\_script-1.0.mender -f ~/Downloads/do\_nothing.sh -s ~/Downloads/ArtifactInstall\_Enter\_01\_User\_Confirmation-v2.py

??

---

<div class="post-metadata">

**Author:** ![SamanRatna](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@SamanRatna](https://hub.mender.io/u/SamanRatna)\
**Post date:** [August 9, 2020, 12:56pm UTC](https://hub.mender.io/t/issues-with-state-scripts-in-directory-artifact-gen/2298/2 "2020-08-09T12:56:08Z")

</div>

Hi there.

The directory-artifact-gen doesn’t recognize the -s option for running the python script. Can you help ?

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [August 10, 2020, 6:27am UTC](https://hub.mender.io/t/issues-with-state-scripts-in-directory-artifact-gen/2298/3 "2020-08-10T06:27:51Z")

</div>

Can you please elaborate what you are trying to do and what issues you are experiencing?

> What is the ‘script’ in ’ -T script ’ on the code:

You can see a description of the flags by running `mender-artifact write module-image --help`
