# Double quotes in run() function

**URL:** <https://discourse.julialang.org/t/double-quotes-in-run-function/43117>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 15, 2020, 11:02am UTC](https://discourse.julialang.org/t/double-quotes-in-run-function/43117 "2020-07-15T11:02:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bjorn\_De](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bjorn_de/32/13174_2.png) [@Bjorn\_De](https://discourse.julialang.org/u/Bjorn_De)\
**Post date:** [July 15, 2020, 11:02am UTC](https://discourse.julialang.org/t/double-quotes-in-run-function/43117/1 "2020-07-15T11:02:35Z")

</div>

Hi,  
I want to execute an external tool out of Julia using the `run()` function:

```julia
run(`gdal_translate -of GTiff HDF4_EOS:EOS_GRID:"$(hdf_path)":MODIS_Grid_16DAY_500m_VI:"500m 16 days NDVI" $gtiff_path`)

```

which produces an error:

```julia
run(`gdal_translate -of GTiff HDF4_EOS:EOS_GRID:"$(hdf_path)":MODIS_Grid_16DAY_500m_VI:"500m 16 days NDVI" $gtiff_path`)
ERROR 4: HDF4_EOS:EOS_GRID:/home/MYD13A1.A2020137.h35v09.006.2020154001932.hdf:MODIS_Grid_16DAY_500m_VI:500m 16 days NDVI: No such file or directory
ERROR: failed process: Process(`gdal_translate -of GTiff 'HDF4_EOS:EOS_GRID:/home/MYD13A1.A2020137.h35v09.006.2020154001932.hdf:MODIS_Grid_16DAY_500m_VI:500m 16 days NDVI' /home/MYD13A1.A2020137.h35v09.006.2020154001932.tif`, ProcessExited(1)) [1]

```

As can be seen, the command includes some double quotes. If I run the command  
`gdal_translate -of GTiff 'HDF4_EOS:EOS_GRID:/home/MYD13A1.A2020137.h35v09.006.2020154001932.hdf:MODIS_Grid_16DAY_500m_VI:500m 16 days NDVI' /home/MYD13A1.A2020137.h35v09.006.2020154001932.tif`  
from the error message in the terminal it works well. Is that error related to the double quotes?

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [July 15, 2020, 12:37pm UTC](https://discourse.julialang.org/t/double-quotes-in-run-function/43117/2 "2020-07-15T12:37:24Z")

</div>

Have you tried running that exact command literally from Julia? Seems unlikely to be related to the quotes, they only affect the parsing of the command, not what’s run.

---

<div class="post-metadata">

**Author:** ![Bjorn\_De](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bjorn_de/32/13174_2.png) [@Bjorn\_De](https://discourse.julialang.org/u/Bjorn_De)\
**Post date:** [July 15, 2020, 12:51pm UTC](https://discourse.julialang.org/t/double-quotes-in-run-function/43117/3 "2020-07-15T12:51:55Z")

</div>

Yes, you are right! It was an issue related to the environment where the (gdal\_translate) tool is installed. It works well using the right environment.
