Maciek,
I don't see that anybody has answered your questions...
The servlet engine runs as a process owned by the configurable user, it hass
all the rights this particular user and group has. The default is ususally
'nobody' and the group 'nobody', you are encouraged to create a new user and
assign the necessary righs though.
Http Servlets are Java classes residing on the server designed to handle
incoming http requests and dynamically generate a response ( usually HTML )
Here is the specification http://java.sun.com/products/servlet/
and here the tutorial
http://java.sun.com/docs/books/tutorial/servlets/index.html
Check you servlet engine documentation what version of Java Servlet
Development Kit it supports.
You can use the full power of Java in our servlets.
In your situation, you can use the Runtime.exec() method to execute the
program. To further optimize it on platforms supporting threads you would
use the dynamic library ( typically .so or .dll ) and Java Native Interface
to access it from the servlet.
Here is the tutorial:
http://java.sun.com/docs/books/tutorial/native1.1/index.html
You may need to dig into your Unix documentation to find out how to
manipulate user profiles programmatically.
Of course you can have website with frames handled by servlets. There are
meny possible ways to implement this. One of the cleanest approach is to
use the TARGET keyword on you form or link with you sevrlet being invoked by
the url.
Like:
<FORM ACTION="/serlet_prefix/Servlet_Name" TARGET="Frame_Name" METHOD=POST>
or
<A HREF="/servlet_prefix/Servlet_Name?Par1=Value1&Par2=Value2"
TARGET="Frame_Name">Call servlet</A>
You may want to check this list archives fro more insights about servlets.
Hope it gives you a good start ...
cheers
Jacek
> -----Original Message-----
> From: Maciej G. [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 29, 1999 04:41
> To: [EMAIL PROTECTED]
> Subject: running shell programs with servlet
>
> Hi!
>
> Im working on project for managing user accounts (checking their
> data like last login, quota, mail data -hanged sessions - and so on...)
> by WWW.
> * How can this be done with servlets - I mean how to execute shell
> programs like finger, quota for a specific user (admin, regular
> user) to gather all this information? Does a servlet recognize a
> specific user (his rights)? What kind of shell programs can be
> executed? And which of them cannot?
> * Where can I find information on how to deal with files by means
> of servlets?
> * My last question is simple - if I create a web page that consist
> of frames, is it possible to make a link to a frame with a servlet
> URL?
>
> Thanks in advance for your advices:)
>
> Best regards,
> Maciej Gerke
>
> ___________________________________
> Poznan University of Technology (Poland)
> UIN: 23167887
> mailto:[EMAIL PROTECTED]
>
>
>
>
> --
> Tysiace produktow!!! Dla kazdego cos interesujacego!!!
> Dzieki niezwyklym promocjom mozesz zaoszczedzic nawet 570,- zl!!!
>
> Zapraszamy. Wirtualny Sklep HBZ (http://www.hbz.com.pl/sklep)
>
> __________________________________________________________________________
> _
> 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
___________________________________________________________________________
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