Changeset 273 in MondoRescue for branches/2.06/mondo/mondo/mondorestore
- Timestamp:
- Jan 3, 2006, 4:09:12 PM (18 years ago)
- Location:
- branches/2.06/mondo/mondo/mondorestore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/mondorestore/mondo-restore.c
r251 r273 3098 3098 fatal_error("This will fail"); 3099 3099 sprintf(command, 3100 " cat %s | grep -x \"%s.*\"> %s",3101 g_filelist_full, restore_this_directory, g_filelist_full);3100 "grep -x \"%s.*\" %s > %s", 3101 restore_this_directory, g_filelist_full, g_filelist_full); 3102 3102 if (system(command)) { 3103 3103 retval++; … … 3108 3108 fatal_error("This will fail"); 3109 3109 sprintf(command, 3110 " cat %s | grep -x \"%s.*\"> %s",3111 g_biggielist_txt, restore_this_directory, g_biggielist_txt);3110 "grep -x \"%s.*\" %s > %s", 3111 restore_this_directory, g_biggielist_txt, g_biggielist_txt); 3112 3112 if (system(command)) { 3113 3113 log_msg(1, -
branches/2.06/mondo/mondo/mondorestore/mondo-rstr-newt.c
r128 r273 605 605 assert(raidrec != NULL); 606 606 system 607 (" cat /proc/mdstat | grep Pers> /tmp/raid-personalities.txt 2> /dev/null");607 ("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null"); 608 608 strcpy(personalities, 609 609 last_line_of_file("/tmp/raid-personalities.txt")); -
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.