Just for reference, this will also work:

get('/etc/passwd', '/tmp/files/%(host_string)' % env)



On Fri, Jul 26, 2013 at 1:18 AM, Worker Bee <[email protected]> wrote:

> A big thanks, guys!
>
> get('/etc/passwd', '/tmp/files/%s' %env.host_string)
>
> THANK YOU!!!!
>
> Bee
>
>
> On Thu, Jul 25, 2013 at 7:12 PM, Nico <[email protected]> wrote:
>
>> ** Env.host_string
>>
>> Ronan Amicel <[email protected]> escribió:
>>>
>>>  Sorry, I meant:
>>>
>>> get('/etc/passwd', '/tmp/files/%s' % env.host)
>>> —
>>> Sent from my phone
>>>
>>>
>>> On Fri, Jul 26, 2013 at 12:26 AM, Worker Bee <[email protected]>wrote:
>>>
>>>> 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')
>>>>
>>>> Any help would be greatly appreciated!
>>>>
>>>> Thanks in advance!
>>>> Bee
>>>>
>>>
>>> ------------------------------
>>>
>>> Fab-user mailing list
>>> [email protected]
>>>
>>> https://lists.nongnu.org/mailman/listinfo/fab-user
>>>
>>>
>
> _______________________________________________
> Fab-user mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/fab-user
>
>


-- 
Want to know how full my inbox is? Or how to get in touch with me faster?
Or tell me your e-mail is not that important? Then check this out:
http://courteous.ly/4WtfZY
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to