Changeset 274 in MondoRescue for trunk/mondo/mondo/mondorestore
- Timestamp:
- Jan 3, 2006, 4:15:54 PM (18 years ago)
- Location:
- trunk/mondo/mondo/mondorestore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondorestore/mondo-restore.c
r252 r274 3101 3101 fatal_error("This will fail"); 3102 3102 sprintf(command, 3103 " cat %s | grep -x \"%s.*\"> %s",3104 g_filelist_full, restore_this_directory, g_filelist_full);3103 "grep -x \"%s.*\" %s > %s", 3104 restore_this_directory, g_filelist_full, g_filelist_full); 3105 3105 if (system(command)) { 3106 3106 retval++; … … 3111 3111 fatal_error("This will fail"); 3112 3112 sprintf(command, 3113 " cat %s | grep -x \"%s.*\"> %s",3114 g_biggielist_txt, restore_this_directory, g_biggielist_txt);3113 "grep -x \"%s.*\" %s > %s", 3114 restore_this_directory, g_biggielist_txt, g_biggielist_txt); 3115 3115 if (system(command)) { 3116 3116 log_msg(1, -
trunk/mondo/mondo/mondorestore/mondo-rstr-newt.c
r181 r274 553 553 assert(raidrec != NULL); 554 554 system 555 (" cat /proc/mdstat | grep Pers> /tmp/raid-personalities.txt 2> /dev/null");555 ("grep Pers /proc/mdstat > /tmp/raid-personalities.txt 2> /dev/null"); 556 556 strcpy(personalities, 557 557 last_line_of_file("/tmp/raid-personalities.txt")); -
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.