I suspect a subject line with the P-word in it will at least hook folks
into reading this... ;-)

Problem: developer has access to a website with tar/gzipped log
files...archived into folders by year 2005/ and month 01/ 02/ and then
the filename has a date in it too - daily.

He complains, "Whaaaa! I need more than one file, so without SCP access,
I have to click click click... Whaaa!"

I say, "Shut up and write a 3 line script to automate the HTTP call...
and leave me alone."
(I can only imagine what he's thinking about my parentage after that IM.
;-)

But this begs a question for the group here... if he asks, "What are the
three lines?" and I decide to do all his freakin' work for him... then,
I'd write a little perl script because I've done this in Perl at least a
dozen times in my life so it's familiar. I wouldn't grab java because
although commons has an http client that's slick, I'd also have to write
files and I suck at that in java.  

But if I make the developer learn how to fish... well, perl might not be
apropos given his skillset (i.e. no perl), so I don't know what would be
best to suggest to him.


So if you were doing this task, how would you approach it? What tool
would you use? And more importantly, why?

-Timo
P.S. there are no bonus points for "out of the box" approaches like,
"change the server logging setup" or "attach a drive share", etc. The
point is to focus on the HTTP task and how to do that.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to