<div class="gmail_quote">On Wed, Dec 9, 2009 at 3:08 PM, Michelle Dupuis <span dir="ltr"><<a href="mailto:support@ocg.ca">support@ocg.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm running * 1.4 and can successfully restart asterisk from the command<br>
line with:<br>
/usr/sbin/asterisk -r -x "restart gracefully"<br>
<br>
However, I have a cron job that tries to restart asterisk and gets this<br>
error:<br>
No such command 'restart gracefully' (type 'help restart gracefully' for<br>
other possible commands)<br>
<br>
Can anyone think of why this is happening?<br>
<br>
Thanks<br></blockquote></div><br>Maybe you need to escape your quotes (\"restart gracefully\") in your script?<br>
<br>
Just a thought...<br>
<br>
<br>-- <br>Thanks,<br>--Warren Selby<br><a href="http://www.selbytech.com">http://www.selbytech.com</a><br>