wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes Error Running shell script from external application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Error Running shell script from external application" Watch "Error Running shell script from external application" New topic
Author

Error Running shell script from external application

Rajesh Datla
Greenhorn

Joined: Mar 28, 2007
Posts: 6
Hi All,
While running shell script using another shell script i am

getting "Warning: UNIXProcess.forkAndExec native error: No such file or

directory" on Redhat linux environment.

Regards
Rajesh
Darrin Cartwright
Ranch Hand

Joined: Dec 27, 2002
Posts: 107
Hello Rajesh Dat,

I have seen a similar error when I wasn't using the correct path to the other script. As a quick check, you might add a couple of debug statements before the call to the other script to check. Something like:

echo $PWD
OTHER_SCRIPT=where/you/think/the/other/script/is/script.sh
echo $OTHER_SCRIPT

If it's not the path problem, could you post the script, or a relevant portion?

Darrin


Life is good on the Ponderosa,<br />but mind where you step.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error Running shell script from external application