# How to avoid passing arguments with quotation marks in Eio.Process.run?

**URL:** https://discuss.ocaml.org/t/how-to-avoid-passing-arguments-with-quotation-marks-in-eio-process-run/15227
**Category:** Learning
**Tags:** eio
**Created:** [September 2, 2024, 2:28pm UTC](https://discuss.ocaml.org/t/how-to-avoid-passing-arguments-with-quotation-marks-in-eio-process-run/15227 "2024-09-02T14:28:39Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![leonardolima](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@leonardolima](https://discuss.ocaml.org/u/leonardolima)
#### Post date: [September 2, 2024, 2:28pm UTC](https://discuss.ocaml.org/t/how-to-avoid-passing-arguments-with-quotation-marks-in-eio-process-run/15227/1 "2024-09-02T14:28:39Z")

</div>

Hi. I’m trying to use [Eio](https://github.com/ocaml-multicore/eio) on Linux. The following

```ocaml
Eio.Process.run proc_mgr ["path/to/main.exe"; "-arg1 value1"; "-arg2 value2"];

```

yields

```shell
path/to/main.exe: unknown option '-arg1 value1'.

Uncaught exception:
  
  Eio.Io Process Child_error Exited (code 2),
  running command: path/to/main.exe "-arg1 value1" "-arg2 value2"

```

which I assume to be the case due to the quotation marks in the arguments, since

```auto
$ path/to/main.exe -arg1 value1 -arg2 value2

```

is successful and yields the expected output.

If my assumption is correct, is there any way to avoid the quotation marks? I was not able not find this in the [API](https://ocaml-multicore.github.io/eio/eio/Eio/Process/index.html).

---

<div class="post-metadata">

### Author: ![shonfeder](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/shonfeder/32/424_2.png) [@shonfeder](https://discuss.ocaml.org/u/shonfeder)
#### Post date: [September 2, 2024, 4:02pm UTC](https://discuss.ocaml.org/t/how-to-avoid-passing-arguments-with-quotation-marks-in-eio-process-run/15227/2 "2024-09-02T16:02:52Z")

</div>

Each separate argument should be its own item in the argument list:

```auto
Eio.Process.run proc_mgr ["path/to/main.exe"; "-arg1”; “value1"; "-arg2”; ”value2"];

```

---

<div class="post-metadata">

### Author: ![yawaramin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/yawaramin/32/3384_2.png) [@yawaramin](https://discuss.ocaml.org/u/yawaramin)
#### Post date: [September 2, 2024, 4:04pm UTC](https://discuss.ocaml.org/t/how-to-avoid-passing-arguments-with-quotation-marks-in-eio-process-run/15227/3 "2024-09-02T16:04:00Z")

</div>

Or rather, each separate ‘word’, even if you would normally consider part of the same command-line flag.

---

<div class="post-metadata">

### Author: ![leonardolima](https://avatars.discourse-cdn.com/v4/letter/l/e47774/32.png) [@leonardolima](https://discuss.ocaml.org/u/leonardolima)
#### Post date: [September 2, 2024, 4:19pm UTC](https://discuss.ocaml.org/t/how-to-avoid-passing-arguments-with-quotation-marks-in-eio-process-run/15227/4 "2024-09-02T16:19:10Z")

</div>

Of course! Thanks a lot 🙂
