Scholarship Information home page banner

@NCC Online Courses Library Search Publications What's New Site Map Home

 

BLUE.GIF (911 bytes) Available Scholarships for Fall 2006

BLUE.GIF (911 bytes) Spring 2006 Scholarship Winners

bluebar.gif (78 bytes)

CountdownValue" 10" 2010-11-21 16:41:28 I #3232 ScrptExe Attempting to run OnExit section on current script 2010-11-21 16:41:28 I #3232 ScrptMain Run script return code: 0 2010-11-21 16:41:28 I #3232 ScrptMain McAfee Update Engine is exiting with return code: 0 2010-11-21 16:41:28 I #3232 MueEep Invoking events withEventId " 0" Severity " 0" Productid " EPOAGENT3000" Locale " 0409" UpdateType " N/A" UpdateError " 0" New Version " N/A" Date Time " N/A" Script Id" 23109" 2010-11-21 16:41:28 I #3232 MueEep Deinitializing entry execution point 2010-11-21 16:41:28 I #3232 MueEep Deinitializing container 2010-11-21 16:41:28 I #3232 ipcchannel Closing IPC connection 2010-11-21 16:41:28 I #3232 MueEep Deleting container 2010-11-21 16:41:28 I #3232 Thread Exit program 2010-11-21 16:41:29 I #1440 ScrptMain START [C:\Program Files\McAfee\Common Framework\McScript_InUse.exe -script C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\InstallMain.McS -id 23119 -localeid 0409 -parent FRAMEWORK -logfile C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\DB\McScript -initiator 4 -ipcid \\.\pipe\upda02728 -installdir C:\Program Files\McAfee\Common Framework] 2010-11-21 16:41:29 I #1440 ScrptLpc Saving hash to registry 2010-11-21 16:41:29 I #3056 SutDnWtch Successfully set up shutdown watch 2010-11-21 16:41:29 I #1440 MueEep Initializing MUE EEP with IPC ID = \\.\pipe\upda02728 Script ID = 23119 2010-11-21 16:41:29 I #1440 ipcchannel Connecting to IPC server 2010-11-21 16:41:29 I #1440 persite Cache file location = C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\sitecache.bin 2010-11-21 16:41:29 I #1440 persite Cabundle file location = C:\Documents and Settings\All Users\Application Data\McAfee\Common Framework\cabundle.cer 2010-11-21 16:41:29 I #1440 naInet UNC Session initialized 2010-11-21 16:41:29 I #1440 imsite Download to: C:\WINDOWS\TEMP\SiteStat.xml 2010-11-21 16:41:29 I #1440 imsite Download from: (FPSrv01) SiteStat.xml #!/usr/bin/perl -w =head1 NAME lwp-download - Fetch large files from the web =head1 SYNOPSIS B [B<-a>] [B<-s>] > [>] =head1 DESCRIPTION The B program will save the file at I to a local file. If I is not specified, then the current directory is assumed. If I is a directory, then the last segment of the path of the I is appended to form a local filename. If the I path ends with slash the name "index" is used. With the B<-s> option pick up the last segment of the filename from server provided sources like the Content-Disposition header or any redirect URLs. A file extension to match the server reported Content-Type might also be appended. If a file with the produced filename already exists, then B will prompt before it overwrites and will fail if its standard input is not a terminal. This form of invocation will also fail is no acceptable filename can be derived from the sources mentioned above. If I is not a directory, then it is simply used as the path to save into. If the file already exists it's overwritten. The I program is implemented using the I library. It is better suited to down load big files than the I program because it does not store the file in memory. Another benefit is that it will keep you updated about its progress and that you don't have much options to worry about. Use the C<-a> option to save the file in text (ascii) mode. Might make a difference on dosish systems. =head1 EXAMPLE Fetch the newest and greatest perl version: $ lwp-download http://www.perl.com/CPAN/src/latest.tar.gz Saving to 'latest.tar.gz'... 11.4 MB received in 8 seconds (1.43 MB/sec) =head1 AUTHOR Gisle Aas =cut #' get emacs out of quote mode use strict; use LWP::UserAgent (); use LWP::MediaTypes qw(guess_media_type media_suffix); use URI (); use HTTP::Date (); my $progname = $0; $progname =~ s,.*/,,; # only basename left in progname $progname =~ s,.*\\,, if $^O eq "MSWin32"; $progname =~ s/\.\w*$//; # strip extension if any #parse option use Getopt::Std; my %opt; unless (getopts('as', \%opt)) { usage(); } my $url = URI->new(shift || usage()); my $argfile = shift; usage() if defined($argfile) && !length($argfile); my $VERSION = "5.835"; my $ua = LWP::UserAgent->new( agent => "lwp-download/$VERSION ", keep_alive => 1, env_proxy => 1, ); my $file; # name of file we download into my $length; # total number of bytes to download my $flength; # formatted length my $size = 0; # number of bytes received my $start_t; # start time of download my $last_dur; # time of last callback my $shown = 0; # have we called the show() function yet $SIG{INT} = sub { die "Interrupted\n"; }; $| = 1; # autoflush my $res = $ua->request(HTTP::Request->new(GET => $url), sub { unless(defined $file) { my $res = $_[1]; my $directory; if (defined $argfile && -d $argfile) { ($directory, $argfile) = ($argfile, undef); } unless (defined $argfile) { # find a suitable name to use $file = $opt{s} && $res->filename; # if this fails we try to make something from the URL unless ($file) { $file = ($url->path_segments)[-1]; if (!defined($file) || !length($file)) { $file = "index"; my $suffix = media_suffix($res->content_type); $file .= ".$suffix" if $suffix; } elsif ($url->scheme eq 'ftp' || $file =~ /\.t[bg]z$/ || $file =~ /\.tar(\.(Z|gz|bz2?))?$/ ) { # leave the filename as it was } else { my $ct = guess_media_type($file); unless ($ct eq $res->content_type) { # need a better suffix for this type my $suffix = media_suffix($res->content_type); $file .= ".$suffix" if $suffix; } } } # validate that we don't have a harmful filename now. The server # might try to trick us into doing something bad. if (!length($file) || $file