Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > pausing a process from java

Reply
Thread Tools

pausing a process from java

 
 
zubairkhan
Guest
Posts: n/a
 
      02-23-2005
hi

i have a task in which i have to run a exe(simulation programme) from
java. using following code:

try {
suzrt = Runtime.getRuntime();
suzproc = suzrt.exec("cmd /C start suzana test");
} catch (java.io.IOException exception) {
System.out.println("Exception!");
}

now this exe will be a new process outside java, i need to pause it for
few seconds and resume it back.

i allready tried to pause the exe using several windows tools.
but the main requiremet of the task is that it shall run on diffrent
platforms like windows and linux).

how can i do this ?? any one has and idea abt this. help me.

 
Reply With Quote
 
 
 
 
dar7yl
Guest
Posts: n/a
 
      02-23-2005
"zubairkhan" <> wrote in message
news: oups.com...
> hi
>
> i have a task in which i have to run a exe(simulation programme) from
> java. using following code:
>
> try {
> suzrt = Runtime.getRuntime();
> suzproc = suzrt.exec("cmd /C start suzana test");
> } catch (java.io.IOException exception) {
> System.out.println("Exception!");
> }
>
> now this exe will be a new process outside java, i need to pause it for
> few seconds and resume it back.
>
> i allready tried to pause the exe using several windows tools.
> but the main requiremet of the task is that it shall run on diffrent
> platforms like windows and linux).
>
> how can i do this ?? any one has and idea abt this. help me.
>


How about creating a socket (UDP?) between the two processes,
and sending command messages between them. A bit of overkill,
but it could get the job done.

regards,
Dar7yl


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pausing/ Resuming Thread Using Tool From java.util.concurrent. yccheok Java 1 03-28-2008 02:55 PM
Re: pausing a java program so user can complete input into SWT shell Red Orchid Java 1 12-04-2006 03:02 PM
pausing a java program so user can complete input into SWT shell gaff Java 1 12-01-2006 02:22 PM
Design Question: Pausing a process in a 3-tier architecture Sebastian Millies Java 0 10-06-2005 12:46 PM
Pausing in Java Sharp Java 4 01-28-2005 10:33 PM



Advertisments