Excute a command within a thread

C

cold.phusion

Hi folks,

I am trying to create a program that would excute an external process
(in my case mplayer) with Runtime.exec() at a given time. Then after a
certain, not constant, period the external process should be stopped
and the program should be back at the start position.
By far, mplayer gets started and killed on time. The problem is that a
dump file should be created after each run of mplayer, but it's not.
The process is loaded in the memory and apparently waits for something
to finish. When I manually terminate the java thread, without killing
the "mplayer" process, mplayer finally starts to dump.
Does anyone have an idea how can I get it to work?


Cheers,
coldphusion
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,269
Messages
2,571,099
Members
48,773
Latest member
Kaybee

Latest Threads

Top