9 except OSError as exc: # Python >2.5
10 if exc.errno == errno.EEXIST:
14 def publish(src,target):
15 cmd = ["rsync","-a","--delete",src,target]
16 retcode = subprocess.call(cmd)
18 print 'Error: '+' '.join(cmd)+' Returncode ['+str(retcode)+']'
20 def ssh_cmd(target, command):
24 cmd = [c[0],c[1],t[0]]
26 cmd = ["ssh",t[0],c[0],c[1],t[1]]
27 retcode = subprocess.call(cmd)
29 print 'Error: '+' '.join(cmd)+' Returncode ['+str(retcode)+']'