Changeset 274 in MondoRescue for trunk/mondo/mondo/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Jan 3, 2006, 4:15:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondorestore/mondo-rstr-tools.c
r254 r274 382 382 f, file); 383 383 log_msg(2, tmp); 384 sprintf(command, " cat %s | grep -x \"%s\"", list_fname, file);384 sprintf(command, "grep -x \"%s\" %s", file, list_fname); 385 385 res = run_program_and_log_output(command, FALSE); 386 386 paranoid_free(command); … … 540 540 } 541 541 sprintf(newfile_fname, "%s/rc.local.mondorescue", path); 542 sprintf(tmp, " cat %s | grep mondorescue> /dev/null 2> /dev/null",542 sprintf(tmp, "grep mondorescue %s > /dev/null 2> /dev/null", 543 543 rclocal_fname); 544 544 if (system(tmp)) { … … 551 551 \\n\ 552 552 \\n\ 553 cat %s | grep -v mondorescue> %s\\n\553 grep -v mondorescue %s > %s\\n\ 554 554 rm -f /var/lock/subsys/*xfs*\\n\ 555 555 rm -f /var/run/xfs.*\\n\ … … 1353 1353 paranoid_system(command); 1354 1354 } 1355 sprintf(command, " cat %s | grep -x \"/dev/.*\"> %s",1355 sprintf(command, "grep -x \"/dev/.*\" %s > %s", 1356 1356 g_biggielist_txt, g_filelist_imagedevs); 1357 1357 paranoid_system(command);
Note:
See TracChangeset
for help on using the changeset viewer.