[Asterisk-Users] MoH trouble with latest bristuff (0.3.0-PRE-1f)
Kib Eki
kibeki at gmx.net
Tue Jan 17 08:40:25 MST 2006
Tzafrir Cohen wrote:
> On Tue, Jan 17, 2006 at 03:48:44PM +0100, Kib Eki wrote:
>> If I use a rawplayer like this:
>> #!/bin/sh
>> while(true) do
>> for name in $@; do
>> cat $name ;
>> done
>> done
>
> BTW: 'while(true)' is is csh syntax that accidentally works in sh. In sh
> it spawns a subshell for the true.
>
> BTW:[2] can you think of a way to use the (bash-specific) $RANDOM to
> play a random file of $@?
>
Sorry, but i am not that much shell expert. I stole the script from OrderlyQ
More information about the asterisk-users
mailing list