[asterisk-users] Can't restart asterisk from script
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Wed Dec 9 23:56:23 CST 2009
On Wed, Dec 09, 2009 at 03:28:19PM -0600, Warren Selby wrote:
> On Wed, Dec 9, 2009 at 3:08 PM, Michelle Dupuis <support at ocg.ca> wrote:
>
> > I'm running * 1.4 and can successfully restart asterisk from the command
> > line with:
> > /usr/sbin/asterisk -r -x "restart gracefully"
> >
> > However, I have a cron job that tries to restart asterisk and gets this
> > error:
> > No such command 'restart gracefully' (type 'help restart gracefully' for
> > other possible commands)
> >
> > Can anyone think of why this is happening?
> >
> > Thanks
> >
>
> Maybe you need to escape your quotes (\"restart gracefully\") in your
> script?
Huh? As you can see, Asterisk got the string as-intended. No need for
funny quoting tricks.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list