Guess it's not a matter of asterisk as it is of Linux scripting. first check: http://linuxproblem.org/art_9.html then try something like: http://forums.digitalpoint.com/showthread.php?t=70926
but as Steve said, why you need to restart the asterisk service in the first place???? Fix what's wrong don't just use the band-aid 2010/3/24 Steve Edwards <asterisk....@sedwards.com> > On Wed, 24 Mar 2010, Amine Mrichcha wrote: > > > I do have asterisk installed for a call center and I would like to know > > if it is possible to create a scipt and execute it from a PC connected > > to the Network without accessing the server. This script should restart > > asterisk and another service related to aheeva. > > > > The problem now is that each time I have to access using PUTY to the > > server to start and run services manually. > > > > Service asterisk restart > > > > Any help would be appreciated, sorry if it is a newbie question. > > Why do you need to restart Asterisk? Is it crashing (in which case you > should fix the underlying cause, not just put a band-aid over it) or is it > not starting when the system is started? > > If you are not going to access the server, what event is going to trigger > the execution of your script? > > -- > Thanks in advance, > ------------------------------------------------------------------------- > Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST > Newline Fax: +1-760-731-3000 > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > 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 -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users