PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

wget problem


Your Ad Here

Your Ad Here

I asked that question which produced a thread of replies.

The above has to do with mechanics-characteristics buttociated with web server that serve the page of yours that's in question here.

So, unless wget have a way to test returned content then bail (I'm not aware of such a wget option) . . .

then, the page is small . . . so, why not just DL it-them then use Python, Grep, or Perl, etc. to scan files content quickly for key (undesired) text terms then delete the unwanted files.

Alternatively I think wget have a "source" option? (pull in a web page's source code)

Lynx does, I know. Go here:

Arrow keys don't work in "read" command of bash 312
On 2006-02-02, Peter T. Breuer You need to learn a little perseverance. It's third on my man page. (Not that the section on the read...

and scroll to bottom to see a Perl script that snags the source code of a web page (using lynx) then scans the incoming source code using a regex (finds line containing the IP address but nontheless the idea here (through modify-adaptation) is to bail on the DL if encounter certain criteria)

Regarding the answer to my up above question on perl.beginners -- I myself ended up with the next code as a solution (but beware that to prematurely terminate an http conection (if the web server can really detect the difference) may considered as rude.

#!-usr-bin-perl

use warnings; use strict; #use diagnostics;

my $lastupdatedon = 'Fri Dec 9'; my $data = `lynx -source ftp:--ftp.slackware.com-pub-slackware-slackware-10.2-ChangeLog.txt head -n 2`; unless ($data =~$lastupdatedon) { print "-nNew Updates-n-n"; } print "-nNoUpdAvail-n-n" if $data =~$lastupdatedon-; print $data, "-n"; # end

-- Alan.



Your Ad Here

List | Previous | Next

Arrow keys don't work in "read" command of bash 312

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

ls color