[Asterisk-Users] asterisk -rx under cron?

Steven Critchfield critch at basesys.com
Wed Jun 18 15:27:24 MST 2003


On Wed, 2003-06-18 at 17:01, Christopher Arnold wrote:
> Hi all,
> 
> i would likte to do an "asterisk -rx show channels" regulary from cron and
> save the results. Easy it may seem, but when running the command from cron
> "sip*CLI> " is the only result.
> 
> Even expect seems to have problems with getting results from asterisk.
> 
> Is it possible to solve the above problem?

I'm testing my guess right now, but I am guessing you need to quote the
show channels command. So from /etc/crontab you would have an entry
like...
0,10,20,30,40,50 * * * * root asterisk -rx "show channels"

-- 
Steven Critchfield  <critch at basesys.com>




More information about the asterisk-users mailing list