[Asterisk-Users] Asterisk Manager

Martin Pycko martinp at digium.com
Tue Oct 14 08:22:56 MST 2003


It's an application and not a cli command, put it in extensions.conf

[default]
exten => s,1,System(ls > /tmp/log)

regards
Martin

On Tue, 14 Oct 2003, Chee Foong wrote:

> Hello mate,
>
> I tried that, i get No such command 'System(ls)'. I can't even make it work
> on CLI.
>
> I am able to execute linux command (via CLI) by prefix command with a "!".
> I would like to know how to do it throut the manager appllication.
>
> Thanks for you reply.
>
> CF
>
>
> ----- Original Message -----
> From: <wasim at convergence.com.pk>
> To: "Chee Foong" <cheefoong at inovas.com>
> Sent: Tuesday, October 14, 2003 2:08 PM
> Subject: Re: [Asterisk-Users] Asterisk Manager
>
>
> > On Tue, 14 Oct 2003, Chee Foong wrote:
> >
> > > Can I execute linux command like(ls, mkdir) through the Manager
> interface?
> >
> > nain*CLI> show application system
> > nain*CLI>
> >   -= Info about application 'System' =-
> >
> > [Synopsis]:
> >   Execute a system command
> >
> > [Description]:
> >   System(command): Executes a command  by  using  system(). Returns -1 on
> > failure to execute the specified command. If  the command itself executes
> > but is in error, and if there exists a priority n + 101, where 'n' is the
> > priority of the current instance, then  the  channel  will  be  setup  to
> > continue at that priority level.  Otherwise, System returns 0.
> >
> > --
> > Mirza Wasim Baig | Principal Consultant | Convergence Business Systems PK
> > #48, St 32, Sector F-6/1, Islamabad, Pakistan 44000 | US: +1(800)460-1446
> > VOX: +92(51)282-0628  |   FAX: +92(51)282-0621   |  GSM: +92(300)850-8070
> >
> > This mail is confidential & intended solely for the use of the addressee.
> >
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list