I think the issue is that the developer doesn't have remote access to the box; he can only get at the logs through the web. So, scp and rsync are out. wget isn't, of course. :) If it were me... I'd do it in bash using wget. Seems like it would be a one-liner, since you can do it in one line w/ wget, but I'd still throw it in a bash script just so I didn't have to go re-read the man pages on wget every time, and so I didn't have to remember the url, etc.
Of course, as pointed out, it all depends on what you're comfortable with. I spend a lot of time in the shell, and have done a fair amount of shell scripting (more than perl scripting, in any event), so... :) Robert Duffy Gillman wrote: > Timo - > > Consider me puzzled. There is something missing in the spec for > this project - what is the developer trying to do, simply get the log > files? If so then rsync, wget, or scp from the commandline, or a > gui-based scp tool seem much more useful than any sort of programming > solution. > > Ok, so barring that, I think this seems a perfect use of a scripting > language - either perl or any of the various *sh variants. Perl will > give you handy, high-level file processing features that will allow the > script to zip through a file (even in a .tgz) with very little coding. > *sh variants will have similar chunky, high-level features (between tar, > find, grep and ls and a few pipes I think there is a simple solution). > Either can be readily incorporated into Apache, and with a slight bit > more trouble, into your favorite servlet container or (god forbid) IIS. > > So really the question becomes, what is the developer comfortable > with? In terms of professional development I'd say everyone should have > some scripting language under their belt. If the fellow has to depend > on Java to do the task I'd hazzard to guess he'll spend 3-4 times longer > on the solution. If that is the soultion he has to fall back on, send > him home with a copy of the Larry Wall Perl book (O'Reilly Press - wtf's > the name? Perl in a Nutshell?), or a printout of 'man bash' (though this > assumes he has some facility with the cadre of shell commands he'll need > - cat, grep, find, tar, ls, ...) and tell him to grind on the solution a > bit longer than he would have in order to get the script going in > scripting language. Dollars to doughnuts, I bet it pays off in time > savings the next time he's confronted with a data crunching task. > > > -Duffy > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]