wood burning stoves 2.0*
The moose likes Mac OS and the fly likes runnning a shell script from mac os x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "runnning a shell script from mac os x " Watch "runnning a shell script from mac os x " New topic
Author

runnning a shell script from mac os x

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
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
code...




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 ?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: runnning a shell script from mac os x
 
Similar Threads
Java Command problem
error while writing to a file
Redirect output from stderr, stdout to a JTextArea
who can my question about this code
Calling Perl from Java