[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lynx-dev Lynx returns error 11 when called from cgi
From: |
Faith Zack |
Subject: |
lynx-dev Lynx returns error 11 when called from cgi |
Date: |
Fri, 11 Dec 1998 13:04:35 -0800 |
Can you tell me what circumstance would cause Lynx
to return 11? I am exec'ing lynx -dump from a java
program, and reading its output using the following
code:
try{
Runtime r = Runtime.getRuntime();
Process p;
p = r.exec("/usr/local/bin/lynx -dump "+url);
p.waitFor();
System.out.println("process status: " + p.exitValue()); //debug
InputStreamReader isr = new InputStreamReader(p.getInputStream());
BufferedReader br = new BufferedReader(isr);
String textdata;
try{
while(true) {
textdata = br.readLine();
if (textdata == null) break;
text += "\n"+textdata;
}
} catch (EOFException e ) {
;//done
}
br.close();
isr.close();
}
--
When I run my Java application from a cgi program I get process status=11,
but when I run it from the command line (even as user 'nobody') it works
fine (process status = 0). Any idea what the problem might be?
Thanks,
faith
ps. Please "CC" me on your response, as I am not on the list.
--
Faith Zack
Software Developer
831 460 4300
.....................................................................
TAPESTRY.NET - On Target, Online Recruiting
111 Mission St. Santa Cruz, CA 95060
Visit our web sites at:
http://www.tapestry.net
http://www.asia-net.com Bilingual Professionals
http://www.developers.net Software Developers
- lynx-dev Lynx returns error 11 when called from cgi,
Faith Zack <=