in reply to The system command and waiting for the child process to finish

It could happen if mplayer detaches itself from the parent process. But the version of mplayer I have doesn't do so, and a brief skim through its manual page doesn't show an option.

Furthermore, I can't reproduce your problem; when I do call mplayer from a Perl program using system, the program waits for mplayer to finish before continuing.

You don't have a & in your real code, do you?

  • Comment on Re: The system command and waiting for the child process to finish