Changeset 273 in MondoRescue for branches/2.06/mondo/mondo/common/libmondo-verify.c
- Timestamp:
- Jan 3, 2006, 4:09:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/common/libmondo-verify.c
r128 r273 159 159 160 160 /* sprintf (command, 161 " cat %s | grep \"afio: \" | awk '{j=substr($0,8); i=index(j,\": \");printf \"/%%s\\n\",substr(j,1,i-2);}' | sort | uniq| grep -v \"incheckentry.*xwait\" | grep -vx \"/afio:.*\" | grep -vx \"/dev/.*\" > %s",161 "grep \"afio: \" %s | awk '{j=substr($0,8); i=index(j,\": \");printf \"/%%s\\n\",substr(j,1,i-2);}' | sort -u | grep -v \"incheckentry.*xwait\" | grep -vx \"/afio:.*\" | grep -vx \"/dev/.*\" > %s", 162 162 stderr_fname, afio_found_changes); 163 163 */ … … 165 165 log_msg(1, "Now scanning log file for 'afio: ' stuff"); 166 166 sprintf(command, 167 " cat %s | grep \"afio: \"| sed 's/afio: //' | grep -vx \"/dev/.*\" >> %s",167 "grep \"afio: \" %s | sed 's/afio: //' | grep -vx \"/dev/.*\" >> %s", 168 168 stderr_fname, afio_found_changes); 169 169 log_msg(2, command); … … 175 175 log_msg(1, "Now scanning log file for 'star: ' stuff"); 176 176 sprintf(command, 177 " cat %s | grep \"star: \"| sed 's/star: //' | grep -vx \"/dev/.*\" >> %s",177 "grep \"star: \" %s | sed 's/star: //' | grep -vx \"/dev/.*\" >> %s", 178 178 stderr_fname, afio_found_changes); 179 179 log_msg(2, command); … … 185 185 afio_diffs = count_lines_in_file(afio_found_changes); 186 186 sprintf(command, 187 " cat %s %s %s | sort| uniq -c | awk '{ if ($1==\"2\") {print $2;};}' | grep -v \"incheckentry xwait()\" > %s",187 "sort %s %s %s | uniq -c | awk '{ if ($1==\"2\") {print $2;};}' | grep -v \"incheckentry xwait()\" > %s", 188 188 ignorefiles_fname, afio_found_changes, afio_found_changes, 189 189 changedfiles_fname); … … 401 401 g_current_media_number, bigfile_num, slice_num); 402 402 if (bkpinfo->compression_level > 0) { 403 sprintf(command, "cat %s | %s -dc 2>> %s", 403 sprintf(command, "%s -dc %s 2>> %s", 404 sz_exe, 404 405 slice_fname(bigfile_num, slice_num, mountpoint, 405 bkpinfo->zip_suffix), sz_exe,406 bkpinfo->zip_suffix), 406 407 MONDO_LOGFILE); 407 408 } else { … … 543 544 sprintf(command, "cat %s >> %s", outlog, MONDO_LOGFILE); 544 545 } else { 545 sprintf(command, "c at %s | cut -d':' -f%d | sort | uniq", outlog,546 (bkpinfo->use_star) ? 1 : 2 );546 sprintf(command, "cut -d: -f%d %s | sort -u", 547 (bkpinfo->use_star) ? 1 : 2, outlog); 547 548 pin = popen(command, "r"); 548 549 if (pin) { … … 580 581 } 581 582 /* chdir(old_pwd); */ 582 // sprintf (tmp, " cat %s | uniq -u>> %s", "/tmp/mondo-verify.err", MONDO_LOGFILE);583 // sprintf (tmp, "uniq -u %s >> %s", "/tmp/mondo-verify.err", MONDO_LOGFILE); 583 584 // paranoid_system (tmp); 584 585 // unlink ("/tmp/mondo-verify.err"); … … 1148 1149 (int) (random() % 32767)); 1149 1150 sprintf(tmp, 1150 " cat %s | grep -x \"%s:.*\"| cut -d'\"' -f2 | sort -u | awk '{print \"/\"$0;};' | tr -s '/' '/' | grep -v \"(total of\" | grep -v \"incheckentry.*xwait\" | grep -vx \"/afio:.*\" | grep -vx \"dev/.*\" > %s",1151 MONDO_LOGFILE, (bkpinfo->use_star) ? "star" : "afio",1151 "grep -x \"%s:.*\" %s | cut -d'\"' -f2 | sort -u | awk '{print \"/\"$0;};' | tr -s '/' '/' | grep -v \"(total of\" | grep -v \"incheckentry.*xwait\" | grep -vx \"/afio:.*\" | grep -vx \"dev/.*\" > %s", 1152 (bkpinfo->use_star) ? "star" : "afio", MONDO_LOGFILE, 1152 1153 changed_files_fname); 1153 1154 log_msg(2, "Running command to derive list of changed files");
Note:
See TracChangeset
for help on using the changeset viewer.