You should replace the single quote with double quote. ------Original Message------ From: Michelle Dupuis Sender: asterisk-users-boun...@lists.digium.com To: 'Asterisk Users List' ReplyTo: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Can't restart asterisk from script Sent: Dec 9, 2009 10:59 PM
But the error message in my log shows the error to be from asterisk, so I'm guessing I'm sending a parameter incorrectly to asterisk - which fits with the no quote theory -----Original Message----- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Bill Kenworthy Sent: Wednesday, December 09, 2009 9:31 PM To: Asterisk Users List Subject: Re: [asterisk-users] Can't restart asterisk from script Keep in mond that cron usually has a very abbreviated environment for security reasons - you may need to set the PATH or other environment variables in the crontab to get it to work. Billk On Wed, 2009-12-09 at 20:55 -0500, Michelle Dupuis wrote: > Interesting...I'll try that. Thanks > > > ______________________________________________________________________ > From: asterisk-users-boun...@lists.digium.com > [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Lyle > Giese > Sent: Wednesday, December 09, 2009 8:47 PM > To: Asterisk Users List > Subject: Re: [asterisk-users] Can't restart asterisk from script > > > > Doug Lytle wrote: > > Warren Selby wrote: > > > > > On Wed, Dec 9, 2009 at 3:08 PM, Michelle Dupuis <supp...@ocg.ca > > > <mailto:supp...@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" > > > > > > > > > > I have the following cron job: > > > > /usr/sbin/asterisk -r -x 'restart when convenient' > > > > Doug > > > > > You probably don't need the single or double quotes at all. I have > never used any quoting in crontab. > > Lyle Giese > LCR Computer Services, Inc. > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users Saludos, Juan E. Rodríguez _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users