|
|
@ -1,4 +1,4 @@
|
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
import subprocess
|
|
|
|
import subprocess
|
|
|
|
from multiprocessing import Process, Manager, Pool, TimeoutError, freeze_support, active_children
|
|
|
|
from multiprocessing import Process, Manager, Pool, TimeoutError, freeze_support, active_children
|
|
|
@ -47,8 +47,8 @@ def netstat_done(res):
|
|
|
|
|
|
|
|
|
|
|
|
def process_done(res):
|
|
|
|
def process_done(res):
|
|
|
|
fprint("uploading to sftp...")
|
|
|
|
fprint("uploading to sftp...")
|
|
|
|
ssh.sftp_send_data(res, config, datafile)
|
|
|
|
#ssh.sftp_send_data(res, config, datafile)
|
|
|
|
#procdata_res = pool.apply_async(ssh.sftp_send_data, (res, config, datafile))
|
|
|
|
procdata_res = pool.apply_async(ssh.sftp_send_data, (res, config, datafile))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|