Running Linux Script thru Runtime.exec() hangs
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Umesh_Nagaraj
Posted On:   Wednesday, October 13, 2004 01:16 AM

Hi All,

I tried to ran a Linux script (which has a background process) through Runtime.exec() in java, it got hanged.
When i ran the same script directly, it works fine.

Any workaround is there ?

Any help will be highly appreciated.

Thank In Advance
umesh

Re: Running Linux Script thru Runtime.exec() hangs

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, November 29, 2004 08:36 AM

make sure the thing running in the background process doesn't need to read or write the tty, or it will be suspended, waiting for the input/output.

Re: Running Linux Script thru Runtime.exec() hangs

Posted By:   Kirti_Wanjale  
Posted On:   Thursday, November 25, 2004 12:01 AM

The following two sites would be very to you just go through this and there won't be any problem in running linux script becaz I have done the same in my poject.
1>www.javaworld.com/javaworld/ jw-12-2000/jw-1229-traps.html
2>java.sun.com/developer/JDCTechTips/2003/tt0304.html
About | Sitemap | Contact