Re: du(1) for FTP sites

2010-05-02 Thread Ted Roche
On 05/02/2010 12:29 AM, Benjamin Scott wrote: Kevin's wget-based implementation worked (thanks again, Kevin!), but was slow due to repeated invocations of wget. I looked at the code to see if I could do something about that... and that awoke the coding bug in me. End result is implemented

Re: du(1) for FTP sites

2010-05-02 Thread Benjamin Scott
On Sun, May 2, 2010 at 10:00 AM, Ted Roche tedro...@tedroche.com wrote: http://sites.google.com/site/mailvortex/unix-and-linux/duftp Suggestion: change the Synopsis syntax from 'duext' to 'duftp' Already fixed on the website and in my local copy; I just didn't bother uploading a new file for

Re: du(1) for FTP sites

2010-05-02 Thread Shawn O'Shea
I started looking at writing it in Python. The library I was looking at (ftputil http://ftputil.sschwarzer.net/ , easy_install ftputil) supports walking the directory structure (much like os.walk or is it os.path.walk) and provides a stat method to get info (including filesize) on the files

Re: du(1) for FTP sites

2010-05-02 Thread Ted Roche
On 05/02/2010 11:05 AM, Benjamin Scott wrote: There will always be at least one stupid typo you don't notice until just after you submit something. The Joy of Open Source: there'll always be one typo and twenty people to point it out to you :) -- Ted Roche Ted Roche Associates, LLC

Re: du(1) for FTP sites

2010-05-02 Thread Benjamin Scott
On Sun, May 2, 2010 at 12:08 PM, Shawn O'Shea sh...@eth0.net wrote: ... provides a stat method to get info (including filesize) on the files (therefore should be FTP server agnostic). The problem with FTP is that the output of LIST is implementation-specific; it varies from server to server.

[GNHLUG] CentraLUG TOMORROW Monday, May3rd, NHTI, 7 PM

2010-05-02 Thread Ted Roche
The Central New Hampshire Linux User Group will meet at its usual place and time, NHTI Library, Room 146, 7 PM - 9 PM. Directions can be found at http://wiki.gnhlug.org/twiki2/bin/view/Www/NHTILibrary In keeping with the tradition of 3-letter presentations (CSS, Vim, SQL, er, HTM), I'll talk abut

Re: du(1) for FTP sites

2010-05-02 Thread Kevin D. Clark
Benjamin Scott writes: Kevin's wget-based implementation worked (thanks again, Kevin!), but was slow due to repeated invocations of wget. Yeah, the big design principal behind my implementation was that I was trying to get it done in less than ~30 minutes...before I had to get going home.

Re: du(1) for FTP sites

2010-05-02 Thread Benjamin Scott
On Sun, May 2, 2010 at 9:39 PM, Kevin D. Clark kevin_d_cl...@comcast.net wrote:   Kevin's wget-based implementation worked (thanks again, Kevin!), but was slow due to repeated invocations of wget. Yeah, the big design principal behind my implementation was that I was trying to get it done in