i think that is because asterisk is intstalled in /usr/sbin/ and you
dont have that un your PATH env variable for cron.

best regards

On 6/15/05, Federico Alves <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]  Wed Jun 15 18:42:00 2005
> Date: Wed, 15 Jun 2005 18:42:00 -0400
> From: [EMAIL PROTECTED] (Cron Daemon)
> To: [EMAIL PROTECTED]
> Subject: Cron <[EMAIL PROTECTED]> 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?
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> [email protected]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 


-- 
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org";
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to