Should __DATA__ be at the very very end, after exit 0; So: exit 0; __DATA__ On Wed, Jan 25, 2012 at 8:07 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/01/12 19:06, Paul Cupis wrote:
unless (flock(DATA, LOCK_EX|LOCK_NB)) { exit; print "$0 is already running. Exiting.\n"; exit(1); }
Er. editing the commands inside the braces above to suit. :)
Regards,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org