|
From: | Jens Rantil |
Subject: | Re: [Fab-user] Quick Syntax Question |
Date: | Fri, 26 Jul 2013 09:42:52 +0200 |
get('/etc/passwd', '/tmp/files/%(host_string)' % env)
BeeA big thanks, guys!THANK YOU!!!!
get('/etc/passwd', '/tmp/files/%s' %env.host_string)
On Thu, Jul 25, 2013 at 7:12 PM, Nico <address@hidden> wrote:Env.host_stringRonan Amicel <address@hidden> escribió:Sorry, I meant:get('/etc/passwd', '/tmp/files/%s' % env.host)—
Sent from my phoneOn Fri, Jul 26, 2013 at 12:26 AM, Worker Bee <address@hidden> wrote:
BeeThanks in advance!Any help would be greatly appreciated!I am stumped (just a python newbie...)I want to grab the passwd files from a set of remote servers, and copy them back to my local host, having the name of each file include the respecitve hostname. I cannot seem to get the correct syntax.
get('/etc/passwd', '/tmp/files/%host')
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user
_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user
[Prev in Thread] | Current Thread | [Next in Thread] |