This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Error Running shell script from external application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Reply 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: 5
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error Running shell script from external application
 
Similar Threads
different command-line startup on linux (vs. windows) not working
"remshd:Login Incorrect" in SAM menu item
Error while executing shell script from java
running java program from a shell script
Error code 137