![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with EXPECT script hanging | markus2008 | UNIX for Dummies Questions & Answers | 0 | 03-11-2008 03:44 PM |
| can hanging perl process wipe out a directory? | aboxilica | UNIX for Advanced & Expert Users | 2 | 02-26-2008 09:21 AM |
| script hanging - remsh | vivsiv | Shell Programming and Scripting | 2 | 07-09-2006 03:41 PM |
| how to tell if process is hanging | dangral | UNIX for Dummies Questions & Answers | 2 | 01-07-2004 08:43 AM |
| hanging sql script | inquirer | UNIX for Dummies Questions & Answers | 4 | 12-26-2001 10:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Script to simulate hanging process
I want to create a script to simulate a process that hangs to test a java application. My java app executes a system command, which can also be executing scripts, etc. Any ideas on such a script?
The java code is: Code:
Runtime rt = Runtime.getRuntime();
Process p = rt.exec("sh ./someTestScript.sh");
int exitValue = p.waitFor(); // If process hangs I don't get an exitValue
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|