getRuntime().exec(...) root command problem

2004-01-16 Thread Philippe Valle
I want do do ipconfig on linux with exec java command. When i do 'ls' for exemple is ok , but for root command like 'ifconfig' i have nothing . my code : ... cmd=ls -l\n; try { Process p=Runtime.getRuntime().exec(/bin/sh); OutputStream

RE: getRuntime().exec(...) root command problem

2004-01-16 Thread Ralph Einfeldt
is ready after the read. p.waitFor(); -Original Message- From: Philippe Valle [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 10:01 AM To: Tomcat Users List Subject: getRuntime().exec(...) root command problem but for root command like 'ifconfig' i have nothing

RE: getRuntime().exec(...) root command problem

2004-01-16 Thread Ralph Einfeldt
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

RE: getRuntime().exec(...) root command problem

2004-01-16 Thread Sanjeev Kumar
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

RE: getRuntime().exec(...) root command problem

2004-01-16 Thread Michael Duffy
: 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 exemple is ok , but for root command like 'ifconfig' i have nothing . my code