[Asterisk-Users] asterisk -rx under cron?
Steven Critchfield
critch at basesys.com
Thu Jun 19 07:30:57 MST 2003
On Thu, 2003-06-19 at 08:47, James Golovich wrote:
>
> On Thu, 19 Jun 2003, Christopher Arnold wrote:
>
> > And it solwed my immediate need too.
> >
> > But is asterisk -rx "show channels" really not meant to work from cron or
> > an noninteractive script? If so i guess some documentaion about the
> > limitations would help other folks out there.
>
> It works just fine for me, the only time it doesn't work is when I don't
> put some quotes around the command.
>
> asterisk at homebox:~/cvs/asterisk# asterisk -rx 'show channels'
> Channel (Context Extension Pri ) State Appl. Data
> 0 active channel(s)
>
> asterisk at homebox:~/cvs/asterisk# asterisk -rx "show channels"
> Channel (Context Extension Pri ) State Appl. Data
> 0 active channel(s)
>
> asterisk at homebox:~/cvs/asterisk# asterisk -rx show channels
> No such command 'show' (type 'help' for help)
If you follow what was said above, it works interactively, but not
non-interactive. Place that in crontab and it doesn't work as expected.
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-users
mailing list