[Asterisk-Users] asterisk -rx under cron?

Christopher Arnold chris at terrabee.net
Wed Jun 18 16:00:02 MST 2003


On Thu, 18 Jun 2003, Steven Critchfield wrote:

> 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"
>
Almost exactly my line...
Including the quotes, but it dosn't work for me...

An easier way to reproduce it:

cat /usr/local/bin/conf
#!/bin/bash
asterisk -rx "show conferences"

ssh -l user asteriskhost /usr/local/bin/conf


Btw. im running under RedHat 2.4.20-18.8.



	/Chris



More information about the asterisk-users mailing list