From: Marc Heiler Date: 2007-03-12T11:03:09+09:00 Subject: Getting PID of external command 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? -- Posted via http://www.ruby-forum.com/.