Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

runnning a shell script from mac os x  RSS feed

jay vas
Ranch Hand
Posts: 407
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys :

Im trying to run a shell script in mac os x using exec. Ive
read the famous article about how unstable exec can be and adapted the

But my code hangs right after <ERROR> is printed. I
have tried executing the generated script from the command line
and it works perfectly. I checked the output of env() and it
is valid (simply an array of environmental variables so that
the executed script has all of them).

Please help Im desperate !? What causes exec to hang when it is
executing a command that should otherwise work perfectly ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!