On 05/02/2012 at 13:42 +0800, Siu Meng Lei wrote: > Dear all, > I have implement a Java API Program, use runtime to execute the > Festival command (such as festival --tts) on terminal. I used the > following method: > String command = "xterm -e \"./process.sh\""; > Process pro = Runtime.getRnutime().exec(command); > And I wrote the script file, process.sh, the context is: > ls; > festival -h; > bash > Then I run my program, it just shows all files name in the current > directory (that mean ls; is successful), however, the festival command > doesn't work ... it just show the error message: > > exec: 88: festival: not found
Put full path to festival binary in the script. In -e mode xterm might ignore your PATH setting from profile because it doesn't run the tool inside the login shell.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Festlang-talk mailing list [email protected] https://lists.berlios.de/mailman/listinfo/festlang-talk
