Hi, You can use java.lang.Runtime.exec("rexec pathToCommand")
It depends which version of windows you are using as to whether you have rexec installed on your machine or not, but you should be able to install it if its not there. Regards Peter -----Original Message----- From: Raju Lokhande [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 3:51 PM To: [EMAIL PROTECTED] Subject: Executing a UNIX comand remotely Hello everybody, I am asked to research whether following is possible. - A servlet will run under tomcat on windows and issue a kill command on Unix to kill a Unix process. I know that Java RMI will do this work, but I could not find any example in my web searches. Standard RMI tutorial builds a fairly big application and i do not have time to go through that. Interestingly, I could not find this in RMI FAQ. Can anyone please share some example code? Thanks Raju Lokhande ************************************************************************* This message, together with any attachments, is intended only for the use of the individual or entity to which it is addressed. It may contain information that is confidential and prohibited from disclosure. If you are not the intended recipient, you are hereby notified that any dissemination or copying of this message or any attachment is strictly prohibited. If you have received this message in error, please notify the original sender immediately by telephone or by return e-mail and delete this message along with any attachments, from your computer. Thank you. ************************************************************************* ___________________________________________________________________________ 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