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: Todd DeLuca
Subject: Re: [Fab-user] os.walk remotely?
Date: Thu, 31 Jan 2013 10:29:58 -0500

Building on what Jasper said, the command 'find' might be useful too.  For example:

    output = run('find js -type f')
 
Regards,
Todd


On Thu, Jan 31, 2013 at 10:00 AM, Jasper van den Bosch <address@hidden> wrote:
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

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).

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




--
Todd DeLuca
http://todddeluca.com
http://wall.hms.harvard.edu/


reply via email to

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