search for: sendstuff

Displaying 1 result from an estimated 1 matches for "sendstuff".

Did you mean: sendbuff
2008 Feb 13
2
[Linux/Python 2.4.2] Forking Python doesn't work
...39;t work as planned: It waits until the script ends before moving on to the next step, which is Dial(): =========== exten => s,1,AGI(netcid.py|${CALLERID(num)}|${CALLERID(name)}) exten => s,n,Dial(${MYPHONE},5) =========== # cat netcid.py #!/usr/bin/python import socket,sys,time,os def sendstuff(data): s.sendto(data,(ipaddr,portnum)) return sys.stdout = open(os.devnull, 'w') if os.fork(): #BAD? sys.exit(0) os._exit(0) else: now = time.localtime(time.time()) dateandtime = time.strftime("NaVm/%y NaVM", now) myar...