Changeset 273 in MondoRescue for branches/2.06/mondo/mondo/mondorestore/mondo-rstr-tools.c
- Timestamp:
- Jan 3, 2006, 4:09:12 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/mondorestore/mondo-rstr-tools.c
r253 r273 400 400 f, file); 401 401 log_msg(2, tmp); 402 sprintf(command, " cat %s | grep -x \"%s\"", list_fname, file);402 sprintf(command, "grep -x \"%s\" %s", file, list_fname); 403 403 res = run_program_and_log_output(command, FALSE); 404 404 paranoid_free(command); … … 558 558 } 559 559 sprintf(newfile_fname, "%s/rc.local.mondorescue", path); 560 sprintf(tmp, " cat %s | grep mondorescue> /dev/null 2> /dev/null",560 sprintf(tmp, "grep mondorescue %s > /dev/null 2> /dev/null", 561 561 rclocal_fname); 562 562 if (system(tmp)) { … … 569 569 \\n\ 570 570 \\n\ 571 cat %s | grep -v mondorescue> %s\\n\571 grep -v mondorescue %s > %s\\n\ 572 572 rm -f /var/lock/subsys/*xfs*\\n\ 573 573 rm -f /var/run/xfs.*\\n\ … … 1371 1371 paranoid_system(command); 1372 1372 } 1373 sprintf(command, " cat %s | grep -x \"/dev/.*\"> %s",1373 sprintf(command, "grep -x \"/dev/.*\" %s > %s", 1374 1374 g_biggielist_txt, g_filelist_imagedevs); 1375 1375 paranoid_system(command);
Note:
See TracChangeset
for help on using the changeset viewer.