Mail Archive Home | enhydra List | September 2000 Index
| <-- Date Index --> | <-- Thread Index --> |
Shilpa -
> Unable to execute cgi scripts through enhydra 3.0.1 ,
The cgi execution feature of Enhydra 3.0.1 is indeed broken.
A fix has been checked into the head of the 3.x branch
in CVS if you want to rebuild from source. The class is
org.enhydra.servlet.servlets.CGIServlet.java. If you need to
execute a lot of cgi scripts you would probably want to
do that with a web server like Apache instead of Enhydra
anyway. If you just need to execute a few Unix commands
from within a presentation object or servlet, you can just
use code like . . .
try {
Process process = runner.exec( "ascript", args );
BufferedReader processOut =
new BufferedReader( new
InputStreamReader(process.getInputStream()) );
String printMe = processOut.readLine();
while( printMe != null ) {
System.out.println( printMe );
printMe = processOut.readLine();
}
process.destroy();
} catch ( Exception e ) {
e.printStackTrace();
}
Hope that helps.
Peter
``````````````````````
Peter Darrah
Staff Engineer
Lutris Technologies http://www.lutris.com
Sponsors of Enhydra http://www.enhydra.org
(831) 460-7359
----- Original Message -----
From: "Shilpa Pakdane" <SPakdane@xxxxxxxxxxxxxxx>
To: <Enhydra@xxxxxxxxxxx>
Sent: Monday, September 25, 2000 2:12 AM
Subject: Enhydra: cgi scripts.
> Unable to execute cgi scripts through enhydra 3.0.1 ,
>
> the browser simply says no data available and does not return the html
page generated by the cgi script.
>
>
> Thanks.
>
> --------------------------------------------------------------------------
---
> To unsubscribe from this mailing list, send email to majordomo@xxxxxxxxxxx
> with the text "unsubscribe enhydra" in the body of the email.
> If you have other questions regarding this mailing list, send email to
> the list admin at owner-enhydra@xxxxxxxxxxxx
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@xxxxxxxxxxx
with the text "unsubscribe enhydra" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-enhydra@xxxxxxxxxxxx
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster.