# Problem to transform bash command to Process crystal command

**URL:** <https://forum.crystal-lang.org/t/problem-to-transform-bash-command-to-process-crystal-command/4275>\
**Category:** Help & Support\
**Created:** [January 18, 2022, 10:03pm UTC](https://forum.crystal-lang.org/t/problem-to-transform-bash-command-to-process-crystal-command/4275 "2022-01-18T22:03:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fulgurance](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.crystal-lang.org/fulgurance/32/1463_2.png) [@Fulgurance](https://forum.crystal-lang.org/u/Fulgurance)\
**Post date:** [January 18, 2022, 10:03pm UTC](https://forum.crystal-lang.org/t/problem-to-transform-bash-command-to-process-crystal-command/4275/1 "2022-01-18T22:03:32Z")

</div>

Hello, I have a problem, actually I need to translate this bash command:

```auto
../configure \
    --target=$LFS_TGT \
    --prefix=$LFS/tools \
    --with-glibc-version=2.11 \
    --with-sysroot=$LFS \
    --with-newlib \
    --without-headers \
    --enable-initfini-array \
    --disable-nls \
    --disable-shared \
    --disable-multilib \
    --disable-decimal-float \
    --disable-threads \
    --disable-libatomic \
    --disable-libgomp \
    --disable-libquadmath \
    --disable-libssp \
    --disable-libvtv \
    --disable-libstdcxx \
    --enable-languages=c,c++

```

I call this function from my API normally:

```auto
def configureSource(arguments : Array(String), path = String.new)
            process = Process.run("./configure",args: arguments,
                                                output: :inherit,
                                                error: :inherit,
                                                chdir: Ism.settings.sourcesPath + "/" + 
                                                        @information.versionName + "/" +
                                                        @mainSourceDirectoryName + "/" +
                                                        path)
            if !process.success?
                Ism.notifyOfConfigureError(path)
                exit 1
            end
        end

```

But for a source need to have a separate directory to be build if I use :

```auto
process = Process.run("../configure"

```

(with two points to call from the previous directory with crystal) it don’t work. How can I do.The contrainst are I need to call the method with **Process.run** , and I don’t want to use **cd** implementation of crystal.

In one word, I need to generate a configuration in an another directory (called “build”)
