This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Running shell script from external application

 
Rajesh Datla
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic