[asterisk-users] CentOS and BAT File
David fire
ddfire at gmail.com
Sun Jan 25 11:54:29 CST 2009
the code will be:
wget
http://asterisk.hosting.lv/bin12/codec_g723-ast12-gcc4-glibc-pentium4.so
cp codec_g723-ast12-gcc4-glibc-pentium4.so
/usr/lib/asterisk/modules/codec_g723.so
chmod +x /usr/lib/asterisk/modules/codec_g723.so
wget
http://asterisk.hosting.lv/bin12/codec_g729-ast12-gcc4-glibc-pentium4.so
cp codec_g729-ast12-gcc4-glibc-pentium4.so
/usr/lib/asterisk/modules/codec_g729.so
chmod +x /usr/lib/asterisk/modules/codec_g729.so
yes just that
you can add "#!/bin/bash" in the first line
David
2009/1/25 David @ULC <ucoms2001 at gmail.com>
>
> I want to write below comands in a bat file and run the shell file so that
> it runs all commands automatically ?
>
> wget
> http://asterisk.hosting.lv/bin12/codec_g723-ast12-gcc4-glibc-pentium4.so
> cp codec_g723-ast12-gcc4-glibc-pentium4.so
> /usr/lib/asterisk/modules/codec_g723.so
> chmod +x /usr/lib/asterisk/modules/codec_g723.so
> wget
> http://asterisk.hosting.lv/bin12/codec_g729-ast12-gcc4-glibc-pentium4.so
> cp codec_g729-ast12-gcc4-glibc-pentium4.so
> /usr/lib/asterisk/modules/codec_g729.so
> chmod +x /usr/lib/asterisk/modules/codec_g729.so
>
> Can anyone show me :
> How to write the file and then with what name I have to save it and where I
> have to save.
>
> And Most importantly how to run it ?
>
>
> On Sun, Jan 25, 2009 at 10:04 PM, David @ULC <ucoms2001 at gmail.com> wrote:
>
>>
>> In windows, we use BAT file to execute few series of command , which help
>> us in not writing each command manually everytime we want to execute those
>> commands.
>> In CentOS, I want to do the same thing.
>>
>> Any Advice ?
>>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090125/5cc4db76/attachment.htm
More information about the asterisk-users
mailing list