fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] os.walk remotely?


From: Jasper van den Bosch
Subject: Re: [Fab-user] os.walk remotely?
Date: Thu, 31 Jan 2013 16:00:31 +0100

Either do it step by step;

output = run('ls')
myfiles = output.split() #may need to parse more carefully
for f in myfiles:
   run('mycommand {0}'.format(f))

Or create a standalone script and send that to the remote machine and execute it there.

Jasper

On 31 January 2013 15:54, andrea crotti <address@hidden> wrote:
I don't see any function to be able to do something like this on the
remote machine:

                for dirname, dirnames, filenames in walk('js'):

isn't there anything?
What could I use otherwise if I want to make it myself?

_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user



--
Jasper van den Bosch
ilogue.com/jasper

I'd love to see your attachment, but please use OpenDocument, not a proprietary format like docx. It's an international standard, endorsed by the EU, and implemented in many office suites, such as LibreOffice, and commercial products from Oracle, Sun, IBM and Microsoft (from 2007).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]