M
Marc Heiler
Hi there,
I am using
Kernel.system("mplayer foobar.wav")
to play a song. This works, but I also need to be able
to kill it from a script. My idea was to simply
get the PID of the mplayer process, Kernel.system
however does not seem to allow this easily, and
Io.popen doesnt wait for it to have finished.
Is there a way to get the PID?
I am using
Kernel.system("mplayer foobar.wav")
to play a song. This works, but I also need to be able
to kill it from a script. My idea was to simply
get the PID of the mplayer process, Kernel.system
however does not seem to allow this easily, and
Io.popen doesnt wait for it to have finished.
Is there a way to get the PID?