Hi,=20
From my C time, it seems like the famous fork+exec+wait. I don't know if =
it's possible in ruby or in all platforms. May you can start a thread =
and run the system there.
--Romeu
-----Mensagem original-----
De: (e-mail address removed) [mailto:
[email protected]] Em nome de =
Joe Percival
Enviada em: quinta-feira, 10 de agosto de 2006 08:38
Para: ruby-talk ML
Assunto: Re: Start an external application - How?
David said:
You could try using 'system', eg:
=20
system("yourwebcamapp.exe")
system seems to want the external process to complete before continuing. =
exec seems to wait for completion of the external process as well. I=20
need to start an external process and then go on to the next command=20
without waiting for the external process to complete. It would also be=20
nice if I could capture a handle for the external process so that I=20
could check status or kill it later.
BTW, I only tested operation in IRB. I'll try both commands in a script =
later.
joe
--=20
Posted via
http://www.ruby-forum.com/.
--=20
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date: 9/8/2006
=20
--=20
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.10.8/415 - Release Date: 9/8/2006
=20