Hi, I am setting AGISIGHUP=no before running a Perl script via AGI but it doesn't seem to be doing anything as the script is still exiting on a hangup and not completing properly. I am using 1.4.35 and have tried various combinations. Can anyone shed any light on this? Regards Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100826/595714d9/attachment.htm
Can you post the CLI output showing the hangup/script failure? _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Lee Archer Sent: Thursday, August 26, 2010 11:39 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Use of AGISIGHUP Hi, I am setting AGISIGHUP=no before running a Perl script via AGI but it doesn't seem to be doing anything as the script is still exiting on a hangup and not completing properly. I am using 1.4.35 and have tried various combinations. Can anyone shed any light on this? Regards Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100826/7a77e4e1/attachment.htm
On Thu, 26 Aug 2010, Lee Archer wrote:> Hi, I am setting AGISIGHUP=no before running a Perl script via AGI but > it doesn?t seem to be doing anything as the script is still exiting on a > hangup and not completing properly.? I am using 1.4.35 and have tried > various combinations.? Can anyone shed any light on this?I'm just a 1.2 Luddite, so I've never seen AGISIGHUP and I think it's a bad idea to protect lazy programmers :) Program defensively! Trap the HUP and do what is appropriate for your script -- even if that is to ignore it. If the successful execution of your system depends on a setting, how long will it take the next guy to figure out when the setting disappears unexpectedly? -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000