usr bin env python hosts travelmgm usr resin resin-3 19 webapps backof

1
2
3
4
5
#!/usr/bin/env python
hosts = {'travelmgm': '/usr/resin/resin-3.0.19/webapps/backoffice/images/deals/large', 'travelweb': '/usr/apache/htdocs/travelist/images/deals/large', 'travelweb2': '/usr/apache/htdocs/travelist/images/deals/large', 'travelsdrs2': '/usr/apache/htdocs/travelist/images/deals/large', 'travelweb3': '/usr/apache/htdocs/travelist/images/deals/large', 'travelweb3': '/usr/apache-dev/htdocs/travelist/images/deals/large', 'traveltest': '/usr/apache/htdocs/travelist/images/deals/large'}
for host, directory in hosts.items():
os.popen4("scp