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       sedwa...@sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to