From: "Kurt M. Dresner" Date: 2003-08-17T03:28:21+09:00 Subject: Re: spawning a process I'm using Debian GNU/Linux, and I want to use mpg123 and ogg123. -Kurt On Sun, Aug 17, 2003 at 03:17:50AM +0900, Hal E. Fulton wrote: > ----- Original Message ----- > From: "Kurt M. Dresner" > To: "ruby-talk ML" > Sent: Saturday, August 16, 2003 1:12 PM > Subject: spawning a process > > > > Hi, > > > > I'm looking through the Ruby documentation and I'm trying to find an > > equivalent to the Python: "pid = os.spawnv(os.P_NOWAIT, program, args)". > > > > I want to play a sound file in a new process, but I want the ability to > > terminate, stop, and continue this process from the file I am in. > > > > Any suggestions? > > I suppose that depends in part on what OS you're on > and how the sound player exposes its controls. > > If you're on Linux or the equivalent, fork and pipe > will work. There's also exec and so on. Don't think > these work on Windows. > > You might look into wrapping the sound player in a > drb server that you can then invoke from anywhere. > > Hal > > -- > Hal Fulton > hal9000@hypermetrics.com > > > >======= End of Original Message =======<