def send_script(cip, user, pemfile, script,):
    print (cip, user, script, pemfile)
    destination='%s@%s:' % (user,cip)
    try:
        p = subprocess.Popen(
        ['scp' , '-i', pemfile, '-o', 'StrictHostKeyChecking=no', '-o', 'UserKnownHostsFile=/dev/null',
         script, destination])
        p.wait()
        return p.returncode
    except Exception, e:
        return 'Error: [%s]' % e
dataset/ETHPy150Open terminalcloud/terminal-tools/script-terminals.py/send_script/original