[Asterisk-Users] Help with Cron and Reload

Neil Cherry ncherry at comcast.net
Wed Jun 15 11:54:22 MST 2005


Federico Alves wrote:
> This will sound weird but the command  'asterisk -r -x reload' fails to work
> when issued by Cron. But it works when I issue it from a bash session. What
> is not configured correctly? I need to refresh the configuration every a
> short amount of time.
> 
> rom root at localhost.localdomain  Wed Jun 15 18:42:00 2005
> Date: Wed, 15 Jun 2005 18:42:00 -0400
> From: root at localhost.localdomain (Cron Daemon)
> To: root at localhost.localdomain
> Subject: Cron <root at ashish> asterisk -r -x reload
> X-Cron-Env: <SHELL=/bin/sh>
> X-Cron-Env: <HOME=/root>
> X-Cron-Env: <PATH=/usr/bin:/bin>
> X-Cron-Env: <LOGNAME=root>
> 
> /bin/sh: line 1: asterisk: command not found
> 
> Any ideas?

Login in as root, type in:

type asterisk

I get /usr/sbin/asterisk

Change crontab (crontab -e) to use the full path.

-- 
Linux Home Automation         Neil Cherry       ncherry at comcast.net
http://home.comcast.net/~ncherry/               (Text only)
http://hcs.sourceforge.net/                     (HCS II)
http://linuxha.blogspot.com/                    My HA Blog



More information about the asterisk-users mailing list