Thanks for your response

 While executing my java program i am getting the error
 "java.io.IOException: Permission denied "
 But i am executing as a root user. 
please help me. 

Thanks 
Jithesh


Peter Schneider-Manzell wrote:
> 
> Do you get error messages or exceptions?
> 
> 2007/10/30, jithesh <[EMAIL PROTECTED]>:
>>
>>
>> Hi,
>>
>>    I am working with java in linux environment. I have to execute a shell
>> script through my java class.
>>
>> I used runtime object to execute the script but its not executing.
>> my code is
>>
>> Runtime runtime = Runtime.getRuntime();
>>         String cmd= "/opt/gs.sh";
>>                 runtime.exec(cmd);
>>
>> Please provide suggestion to overcome this problem.
>>
>> Regards
>> Jithesh
>> --
>> View this message in context:
>> http://www.nabble.com/shell-script-in-java-tf4718365s2369.html#a13488290
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/shell-script-in-java-tf4718365s2369.html#a13505658
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to