Yes.
I'm not sure where the script is being called from... But in running scripts via cron, I find that the path to asterisk needs to be used.
Maybe because $PATH isn't set....
From: "Skyler F" <electricity440@gmail.com>
To: "Dean, Corey" <n3fe@repeater.net>, "rpt-users, app" <app_rpt-users@ohnosec.org>
Sent: Thursday, December 4, 2014 4:00:43 PM
Subject: Re: [App_rpt-users] Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
nope, thats probably it, the script simply has:
asterisk -rx "rpt fun 40764 *71"
Should I add a /usr/sbin/asterisk -rx "rpt fun 40764 ?