Changeset 13012
- Timestamp:
- 2006-10-05T16:51:22+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/downloaders/WgetDownload.pm
r12949 r13012 128 128 my ($self, $cmdWget,$blnShow) = @_; 129 129 130 my ($ os,$strReadIn,$strLine,$command);130 my ($strReadIn,$strLine,$command); 131 131 $strReadIn = "" unless defined $strReadIn; 132 133 $os = $ENV{'GSDLOS'};134 135 136 if ($os =~ /windows/i){137 $command = "\"$ENV{'GSDLHOME'}\\bin\\windows\\wget\" $cmdWget |";138 }139 else{140 $command = "$ENV{'GSDLHOME'}/packages/wget/wget-1.9/src/wget $cmdWget |";141 }142 132 143 133 my $wget_file_path = &util::filename_cat($ENV{'GSDLHOME'}, "bin", $ENV{'GSDLOS'}, "wget"); 134 $command = "\"$wget_file_path\" $cmdWget |"; 144 135 145 open(*WIN,$command) || die "wget request failed: $!\n"; 146 147 136 open(*WIN,$command) || die "wget request failed: $!\n"; 148 137 149 138 while (defined($strLine=<WIN>)) 150 139 { 151 152 153 140 if($blnShow) 154 141 {
Note:
See TracChangeset
for help on using the changeset viewer.