[asterisk-users] Can't restart asterisk from script

Warren Selby wcselby at selbytech.com
Wed Dec 9 15:28:19 CST 2009


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?

Just a thought...


-- 
Thanks,
--Warren Selby
http://www.selbytech.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091209/67c995a7/attachment.htm 


More information about the asterisk-users mailing list