I am using two phones, Galaxy Nexus(JellyBean) and Nexus 5(KitKat). I am trying to execute a script which exists in
/data/folder/scripts/run.sh
The issue was due to not having root access. Fixed when SuperSu granted permission to the application.