----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Karthik,
>I know that to restart the apache web server, i should have
>root/super-user access. Now, i need to achieve this through
>a GUI.
Runtime.getRuntime().exec("command string")
Try;
http://search.java.sun.com/query.html?col=jsun&pw=100%25&ws=0&nh=10&qt=&Sear
ch.x=31&Search.y=7
and type in exec or runtime, you will find several threads and several
different ways of doing it.
If you just need to restart the server if you made a change to the conf
files while you are in development, run a console/bash window. On NT in bash
type in "net stop apache && net start apache". Much easier than writing a
program to do it.
Cameron Riley
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]