Re: bell boing scriipt quits
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Apr 2006 22:42:56 GMT
Tango2 wrote:
I added a .wav sound file to be executed based on a conditional comparison. When exec aplay /.../.../.../....wav runs the script stops.
When I exec other commands it returns to my script what is going on?
Suggestions please and thanks.
Whenever you call the command 'exec', it won't return until the command finishes running. That's how it is documented to work. If you append an "&", that job will run in the background and exec will return (almost) immediately. That, too, is documented.
If you are seeing commands that return quickly it is likely because the command finishes almost instantly whereas aplay probably does not.
Your best bet is to include an "&" as the last argument to exec:
exec aplay /.../.../.../....wav &]
--
Bryan Oakley
http://www.tclscripting.com
.
- Follow-Ups:
- Re: bell boing scriipt quits
- From: Gerald W. Lester
- Re: bell boing scriipt quits
- References:
- bell boing scriipt quits
- From: Tango2
- bell boing scriipt quits
- Prev by Date: Re: Client does not support authentication protocol requested by server, consider upgrading MySQL client.
- Next by Date: Re: bell boing scriipt quits
- Previous by thread: bell boing scriipt quits
- Next by thread: Re: bell boing scriipt quits
- Index(es):
Relevant Pages
|