try this....

 Process child = Runtime.getRuntime().exec("env");
 BufferedReader in = new BufferedReader(new
InputStreamReader(child.getInputStream()));


----- Original Message -----
From: "Deepak C S" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 09, 2001 6:27 AM
Subject: running linux commands from Java(JSP/servlets)


> Hi,
>
>         Is there anyway to execute Linux commands from within JSPs or
> Servlets??
>
>         like in perl,...we place OS commands in         backquotes eg.
`cat
> file.dat`
>
> advance thanx ,
> Deeps
>
>
>
>
___________________________________________________________________________
> 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


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

___________________________________________________________________________
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

Reply via email to