In OS X 10.9.5
I wrote a Shell Script (via vim). Save it and navigate to this script and
sh code.shit runs perfect (in iTerm & Total Terminal).
The same command in the same directory produces via Mac Automator always an ERROR. Why?
in Automator and in Terminal.echo $SHELL
/bin/bash
Why is it impossible to run a shellscript via Automator. 
code.shexpect some input from somewhere? Can you run it withsh -x(or rather,bash -x, if it's really properly a Bash script) to see where exactly it's failing?can't find lib-x or lib-y. Only STOP. The Shell-script itself contains a RScript.Rscript -e 'shiny::runApp(("/Users/Einstein/Git/RShiny/fooapp"),launch.browser=TRUE)'sleep 1000in the command to run, and press the Stop button after allowing it to run for a while. So I guess that's what you did as well.