# How to include double quotes within a 'script' call?

**URL:** https://cylc.discourse.group/t/how-to-include-double-quotes-within-a-script-call/766
**Category:** Cylc Support
**Created:** [September 28, 2023, 2:51am UTC](https://cylc.discourse.group/t/how-to-include-double-quotes-within-a-script-call/766 "2023-09-28T02:51:03Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)
#### Post date: [September 28, 2023, 2:51am UTC](https://cylc.discourse.group/t/how-to-include-double-quotes-within-a-script-call/766/1 "2023-09-28T02:51:03Z")

</div>

hi there,

i need to change a `rose` call in my `flow.cylc` file from this…

```auto
script = "rose task-run --verbose"

```

… to this…

```auto
script = "rose task-run -O '(" + SITE + ")'" --verbose"

```

but this throws an error…

```auto
IllegalValueError: (type=string) [runtime][root]script = "rose task-run -O '(" + SITE + ")'" --verbose"

```

is there a way to get around this?

thanks,

jonny

---

<div class="post-metadata">

### Author: ![hilary.j.oliver](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/hilary.j.oliver/32/4_2.png) [@hilary.j.oliver](https://cylc.discourse.group/u/hilary.j.oliver)
#### Post date: [September 28, 2023, 3:42am UTC](https://cylc.discourse.group/t/how-to-include-double-quotes-within-a-script-call/766/2 "2023-09-28T03:42:22Z")

</div>

Just use a multi-line string value:

```auto
script = """
    echo "Hello World!"
"""

```

What is `SITE` in your example, BTW - a Jinja2 variable? (if so, it needs to be inside a Jinja2 code block).

---

<div class="post-metadata">

### Author: ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)
#### Post date: [September 29, 2023, 1:37am UTC](https://cylc.discourse.group/t/how-to-include-double-quotes-within-a-script-call/766/3 "2023-09-29T01:37:03Z")

</div>

thanks! that works 🙂

also thanks for the tip/reminder re Jinja2…

```auto
    script = """
             rose task-run --verbose -O '(" + {{SITE}} + ")'
             """

```

where SITE is defined in the `rose-suite.conf` file.

this results in…

```auto
> cylc view -j . |grep -i task\-run |grep NIWA

rose task-run --verbose -O '(" + NIWA + ")'

```

… which is exactly what i wanted.

cheers,

jonny
