[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] put() question
From: |
Jeff Honey |
Subject: |
[Fab-user] put() question |
Date: |
Wed, 13 Oct 2010 14:48:54 -0400 |
I am trying to make a go at cross-platform operation here and starting with
some basic "put()" commands, e.g.
<snip>
from fabric.api import *
env.roledefs = {
servers': ['foo1.com', 'foo2.com', 'foo3.com']
}
@roles('servers')
def putfile():
put('c:\blah.txt', '/tmp/')
run('touch /tmp/blah.txt')
</snip>
...which bombs out when I try to run it from a Windows cmd prompt. It evaluates
'c:\blah.txt' to clah.txt. I have tried using double-quotes or escaping the
non-alpha characters. Can someone shine some light on how I can construct the
local_file portion to work or will this work at all?
Thanks!
--
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
¤ kyoboku kazeoshi ¤
¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
- [Fab-user] put() question,
Jeff Honey <=