String[] cmd ={"/home/seaver/MONSTER/monster", "-i" + getJobID(), filePath +
dir + getPdbFileName()};
try{
Process proc = Runtime.getRuntime().exec(cmd);
BufferedWriter output = new BufferedWriter(new
OutputStreamWriter(proc.getOutputStream()));
BufferedReader input = new BufferedReader(new
InputStreamReader(proc.getInputStream()));
BufferedReader error = new BufferedReader(new
InputStreamReader(proc.getErrorStream()));
}catch (Throwable t){
t.printStackTrace();
}The program perl script, monster, runs fine natively, and it runs fine when activated from the web interface.
The files passed into the web interface contains records which monster parses and then inputs into a small C program. This all works fine, even with multiple records (leading to the one monster instance running the C program multiple times)
however, if a file with multiple records is passed through the web interface, after doing the first few records, the perl script just simply suspends. From the look of the output, it is almost as if it never recieves back a PID from the C program, and so it hangs.
But this only happens when i run it via the web interface, so what is happening here!?
S
_________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
