executing a script from linux in Java
Posted on 1999-11-26
I'm new to linux and I want to ask you how can I run a script written in linux ?
The script is "start0" and is working from linux environment. But when I execute the following method , it gives me some strange errors:
private void start(int nrCalc)
out("An error with IO");
Here's the script:
echo $1 >> /home/sionut/cafe/start.out
and the error is:
Reaped pid=14415, status =255
and then it gives me an error .
PS: Another question, not related to this. When I type "ps" and my program is running , it shows six times "java". My program doesn't start any child processes, so is it an error or it's normal ?