[asterisk-users] 30 mins GSM file

Steve Edwards asterisk.org at sedwards.com
Fri Mar 5 10:53:33 CST 2010


On Fri, 5 Mar 2010, David @ULC wrote:

> Sorry if you guys find this silly,
>
> for i in `seq 1 180`; do cat /var/lib/asterisk/sounds/en/silence/10.gsm
>>> * /var/lib/asterisk/sounds/30-minutes-of-silence.gsm ; done*
>
> I need to enter above lines in my root prompt ?

Yes. Your system will run much better DISPLAYING the above command IN your 
root prompt.

I know I've said it before (and you ignored it then), but you really 
should invest just a smidgen of time actually learning Linux.

However, if you to CREATE a 30 minute silent GSM file using the above 
command, type in AT your root prompt:

for i in `seq 1 180` (press <ENTER> here)
do (press <ENTER> here)
cat /var/lib/asterisk/sounds/silence/10.gsm \ (press <ENTER> here)
>>/var/lib/asterisk/sounds/30-minutes-of-silence.gsm (press <ENTER> here)
done (press <ENTER> here)

For extra credit, figure out how the example below works and why it is 
(slightly) better:

 	(
 	for i in `seq 1 180`
 		do
 		cat /var/lib/asterisk/sounds/silence/10.gsm
 		done
 	) >/var/lib/asterisk/sounds/30-minutes-of-silence.gsm

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list