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. > > [EMAIL PROTECTED]:~/cvs/asterisk# asterisk -rx 'show channels' > Channel (Context Extension Pri ) State Appl. Data > 0 active channel(s) > > [EMAIL PROTECTED]:~/cvs/asterisk# asterisk -rx "show channels" > Channel (Context Extension Pri ) State Appl. Data > 0 active channel(s) > > [EMAIL PROTECTED]:~/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 <[EMAIL PROTECTED]> _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users
