It's not clear to me if you get an error or if you just get
no result. So I can give just general hints:
- Use the complete path to ifconfig
It should cause an exeption if you omit the pat and the
command is not found.
- The user that runs tomcat must have the right to call ifconfig
It
Sorry little typo:
pat should be path
-Original Message-
From: Ralph Einfeldt
Sent: Friday, January 16, 2004 10:25 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: getRuntime().exec(...) root command problem
It should cause an exeption if you omit the pat
Try
cmd=/sbin/ifconfig \n;
-Original Message-
From: Philippe Valle [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 2:31 PM
To: Tomcat Users List
Subject: getRuntime().exec(...) root command problem
I want do do ipconfig on linux with exec java command.
When i do 'ls' for
No one should use java.lang.Runtime.exec without
reading this:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
MOD
--- Sanjeev Kumar [EMAIL PROTECTED] wrote:
Try
cmd=/sbin/ifconfig \n;
-Original Message-
From: Philippe Valle [mailto:[EMAIL PROTECTED]
Sent: