external tool to run a bash script

I'm sure I'm doing something stupid, but ... I have a bash script (I'm on Mac OS X 10.8.5) that calls Jing with the simplify option to turn a modular Relax NG compact schema into a simplified monolithic RNG for further processing. It runs just fine from the command line, but I have been trying to implement it as an external tool. The command I use for the external tool is source /Users/taraathan/SimpleApps/oxygen/simplify-rnc2rng.sh ${cf} ${cfd}/tmp/simp-${cfne}.rng with working directory /Users/taraathan I get the error message Could not start: Cannot run program "source" (in directory "/Users/taraathan"): error=2, No such file or directory Process ended with exit code: -1234567 Any suggestions? Thanks, Tara

On 28/02/2014 5:26 am, Tara Athan wrote:
I'm sure I'm doing something stupid, but ...
I have a bash script (I'm on Mac OS X 10.8.5) that calls Jing with the simplify option to turn a modular Relax NG compact schema into a simplified monolithic RNG for further processing. It runs just fine from the command line, but I have been trying to implement it as an external tool. The command I use for the external tool is
source /Users/taraathan/SimpleApps/oxygen/simplify-rnc2rng.sh ${cf} ${cfd}/tmp/simp-${cfne}.rng
with working directory
/Users/taraathan
I get the error message
Could not start: Cannot run program "source" (in directory "/Users/taraathan"): error=2, No such file or directory Process ended with exit code: -1234567
It's trying to run the program "source" in the working directory. Try removing the word "source" from the command you are using. -- Peter West ...and again, as his custom was, he taught them.

Hi, 'source' is a bash shell built-in command, it's not an application, so you can't use it outside of bash (the Terminal). Use '/bin/sh' instead of 'source'. Regards, Adrian Adrian Buza oXygen XML Editor and Author Support Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com On 27.02.2014 21:26, Tara Athan wrote:
I'm sure I'm doing something stupid, but ...
I have a bash script (I'm on Mac OS X 10.8.5) that calls Jing with the simplify option to turn a modular Relax NG compact schema into a simplified monolithic RNG for further processing. It runs just fine from the command line, but I have been trying to implement it as an external tool. The command I use for the external tool is
source /Users/taraathan/SimpleApps/oxygen/simplify-rnc2rng.sh ${cf} ${cfd}/tmp/simp-${cfne}.rng
with working directory
/Users/taraathan
I get the error message
Could not start: Cannot run program "source" (in directory "/Users/taraathan"): error=2, No such file or directory Process ended with exit code: -1234567
Any suggestions?
Thanks, Tara _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Thanks for your help. That's working now. - Tara On 2/28/14 8:50 AM, Oxygen XML Editor Support wrote:
Hi,
'source' is a bash shell built-in command, it's not an application, so you can't use it outside of bash (the Terminal). Use '/bin/sh' instead of 'source'.
Regards, Adrian
Adrian Buza oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202 Fax: +40-251-461482 support@oxygenxml.com http://www.oxygenxml.com
On 27.02.2014 21:26, Tara Athan wrote:
I'm sure I'm doing something stupid, but ...
I have a bash script (I'm on Mac OS X 10.8.5) that calls Jing with the simplify option to turn a modular Relax NG compact schema into a simplified monolithic RNG for further processing. It runs just fine from the command line, but I have been trying to implement it as an external tool. The command I use for the external tool is
source /Users/taraathan/SimpleApps/oxygen/simplify-rnc2rng.sh ${cf} ${cfd}/tmp/simp-${cfne}.rng
with working directory
/Users/taraathan
I get the error message
Could not start: Cannot run program "source" (in directory "/Users/taraathan"): error=2, No such file or directory Process ended with exit code: -1234567
Any suggestions?
Thanks, Tara _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (3)
-
Oxygen XML Editor Support
-
Peter West
-
Tara Athan