# Running a bash script using system execute

**URL:** <https://forum.cloverdx.com/t/running-a-bash-script-using-system-execute/1055>\
**Category:** CloverDX Platform\
**Created:** [April 18, 2012, 12:00am UTC](https://forum.cloverdx.com/t/running-a-bash-script-using-system-execute/1055 "2012-04-18T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasturi](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kasturi](https://forum.cloverdx.com/u/kasturi)\
**Post date:** [April 18, 2012, 12:00am UTC](https://forum.cloverdx.com/t/running-a-bash-script-using-system-execute/1055/1 "2012-04-18T00:00:00Z")

</div>

I need to run a bash script from clover. The script looks like this  
#!/bin/bash  
rm S\_D\_85252592\_\*.txt  
rm S\_D\_85252592\_\*.txt.gz  
java Autoingestion userid password 85252592 Sales Daily Summary  
gunzip S\_D\_85252592\_\*.txt.gz  
cp S\_D\_85252592\*.txt download.txt.copy  
mv /download.txt.copy /home/mypub/sandboxes/events\_dc\_to\_reporting/data-in/download.txt

I am using the following in SystemExecute transformation .

bash -c “/data/external/Apple/download.sh”

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![David\_Hlidek](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@David\_Hlidek](https://forum.cloverdx.com/u/David_Hlidek)\
**Post date:** [April 19, 2012, 8:02am UTC](https://forum.cloverdx.com/t/running-a-bash-script-using-system-execute/1055/2 "2012-04-19T08:02:41Z")

</div>

Hi kasturi,

did you tried to observe data on output port of SystemExec? What is it saying?

If “/data/external/Apple/download.sh” have runnable flag, then it should be possible to launch just “/data/external/Apple/download.sh”
