Changeset 32826
- Timestamp:
- 2019-02-27T18:55:36+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/servercontrol.pm
r32498 r32826 207 207 my $resultstr; 208 208 # Read in the entire contents of the file in one hit 209 sysread(FIN, $resultstr, -s FIN); 209 ##sysread(FIN, $resultstr, -s FIN); 210 # GLI GBuildProgressMonitor.hasSignalledStop() removes any lines that start with elements it doesn't recognise 211 # but we want to see the lines with HTML tags as they are the most interesting: they embed success/failure messages 212 # So read line by line from the downloaded web page and replace <> with [] so that GLI can display these lines too 213 while (my $line = <FIN>) { 214 chomp $line; 215 $line =~ s@<@[@g; 216 $line =~ s@>@]@g; 217 $resultstr .= "$line\n"; 218 } 210 219 close(FIN); 211 220 &FileUtils::removeFiles($tmpfilename); # get rid of the ping response's temporary html file we downloaded
Note:
See TracChangeset
for help on using the changeset viewer.