PDA

View Full Version : Executing a file from within a Ruby program


Pandaman
July 14th, 2006, 08:47 AM
Hello everyone,

I am very new to Ruby (about a week). I have been looking for a code snippet that would allow me to execute a file on my computer in its preferred application (not open within Ruby).

Specifically, I would like to play the file /home/usr/foo.wav
Does anyone know a piece of code to do that?

Thanks in advance!
Panda