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 <[email protected]>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 <[email protected]> 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
>> [email protected]
>> 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).
>
> _______________________________________________
> Fab-user mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/fab-user
>
>
--
Todd DeLuca
http://todddeluca.com
http://wall.hms.harvard.edu/
_______________________________________________
Fab-user mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/fab-user