Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Error Running shell script from external application

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic