Changeset 273 in MondoRescue for branches/2.06/mondo
- Timestamp:
- Jan 3, 2006, 4:09:12 PM (18 years ago)
- Location:
- branches/2.06/mondo/mondo
- Files:
-
- 25 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mondo/mondo/common/X-specific.cpp
r30 r273 197 197 kapp->quit(); 198 198 printf ("---FATAL ERROR--- %s\n", error); 199 system (" cat /var/log/mondo-archive.log | gzip -9> /tmp/MA.log.gz 2> /dev/null");199 system ("gzip -9c /var/log/mondo-archive.log > /tmp/MA.log.gz 2> /dev/null"); 200 200 printf ("If you require technical support, please contact the mailing list.\n"); 201 201 printf ("See http://www.mondorescue.org for details.\n"); … … 252 252 if (grep_for_me[0] != '\0') 253 253 { 254 sprintf (command, " cat %s | grep \"%s\" | tail -n%d", filename,255 grep_for_me, NOOF_ERR_LINES);254 sprintf (command, "grep \"%s\" %s | tail -n%d", 255 grep_for_me, filename, NOOF_ERR_LINES); 256 256 } 257 257 else 258 258 { 259 sprintf (command, " cat %s | tail -n%d", filename, NOOF_ERR_LINES);259 sprintf (command, "tail -n%d %s", NOOF_ERR_LINES, filename); 260 260 } 261 261 fin = popen (command, "r"); -
branches/2.06/mondo/mondo/common/libmondo-devices.c
r256 r273 1437 1437 #else 1438 1438 sprintf(command, 1439 " cat /proc/filesystems | grep -v nodev| tr -s '\t' ' ' | cut -d' ' -f2 | tr -s '\n' ' '");1439 "grep -v nodev /proc/filesystems | tr -s '\t' ' ' | cut -d' ' -f2 | tr -s '\n' ' '"); 1440 1440 #endif 1441 1441 -
branches/2.06/mondo/mondo/common/libmondo-filelist.c
r128 r273 656 656 if (find_home_of_exe("setfacl")) 657 657 { 658 sprintf(command, " cat %s | gzip -dc| setfacl --restore - 2>> %s", acl_fname, MONDO_LOGFILE);658 sprintf(command, "gzip -dc %s | setfacl --restore - 2>> %s", acl_fname, MONDO_LOGFILE); 659 659 log_msg(1, "command = %s", command); 660 660 retval = system(command); … … 685 685 log_msg(1, 686 686 "No masklist provided. I shall therefore set ALL attributes."); 687 sprintf(command, " cat %s | gzip -dc| %s --restore - 2>> %s",687 sprintf(command, "gzip -dc %s | %s --restore - 2>> %s", 688 688 original_exat_fname, executable, MONDO_LOGFILE); 689 689 log_msg(1, "command = %s", command); … … 712 712 sort_file(masklist); 713 713 current_subset_file[0] = current_master_file[0] = '\0'; 714 sprintf(syscall_pin, " cat %s | gzip -dc", original_exat_fname);714 sprintf(syscall_pin, "gzip -dc %s", original_exat_fname); 715 715 sprintf(syscall_pout, "%s --restore - 2>> %s", executable, 716 716 MONDO_LOGFILE); … … 833 833 if (find_home_of_exe("setfattr")) 834 834 { 835 sprintf(command, " cat %s | gzip -dc| setfattr --restore - 2>> %s", acl_fname, MONDO_LOGFILE);835 sprintf(command, "gzip -dc %s | setfattr --restore - 2>> %s", acl_fname, MONDO_LOGFILE); 836 836 log_msg(1, "command = %s", command); 837 837 retval = system(command); -
branches/2.06/mondo/mondo/common/libmondo-files.c
r234 r273 845 845 sprintf(mountlist, "%s/mountlist.txt", tmpdir); 846 846 sprintf(command, 847 " cat %s/mountlist.txt | grep \"%s \" | head -n1 | awk '{print $4;}'",848 tmpdir, dev);847 "grep \"%s \" %s/mountlist.txt | head -n1 | awk '{print $4}'", 848 dev, tmpdir); 849 849 log_it(command); 850 850 strcpy(sz_res, call_program_and_get_last_line_of_output(command)); -
branches/2.06/mondo/mondo/common/libmondo-raid.c
r128 r273 80 80 81 81 command = malloc(MAX_STR_LEN * 2); 82 strcpy(command, " cat /proc/mdstat | grep \"");82 strcpy(command, "grep \" /proc/mdstat"); 83 83 if (raidno == -1) { 84 84 strcat(command, "linear"); -
branches/2.06/mondo/mondo/common/libmondo-tools.c
r196 r273 335 335 "for i in `find /root /home -type d -name Desktop -maxdepth 2`; do \ 336 336 file=$i/.directory; if [ -f \"$file\" ] ; then mv -f $file $file.old ; \ 337 cat $file.old |awk '{if (index($0, \"rootimagesmindi\")) { while (length($0)>2) { getline;} ; } \338 else { print $0;};}' > $file ; fi ; done");337 awk '{if (index($0, \"rootimagesmindi\")) { while (length($0)>2) { getline;} ; } \ 338 else { print $0;};}'$file.old > $file ; fi ; done"); 339 339 run_program_and_log_output(tmp, 5); 340 340 paranoid_free(tmp); … … 1098 1098 #ifndef __FreeBSD__ 1099 1099 if (run_program_and_log_output 1100 (" cat /proc/devices | grep ramdisk", FALSE)) {1100 ("grep ramdisk /proc/devices", FALSE)) { 1101 1101 if (!ask_me_yes_or_no 1102 1102 ("Your kernel has no ramdisk support. That's mind-numbingly stupid but I'll allow it if you're planning to use a failsafe kernel. Are you?")) … … 1390 1390 log_msg(4, "Done. Great. Seeting command to something"); 1391 1391 strcpy(command, 1392 " cat /etc/fstab | grep -v \":\"| grep -vx \"#.*\" | grep -w \"/boot\" | tr -s ' ' '\t' | cut -f1 | head -n1");1392 "grep -v \":\" /etc/fstab | grep -vx \"#.*\" | grep -w \"/boot\" | tr -s ' ' '\t' | cut -f1 | head -n1"); 1393 1393 log_msg(4, "Cool. Command = '%s'", command); 1394 1394 strcpy(tmp, call_program_and_get_last_line_of_output(command)); -
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"); -
branches/2.06/mondo/mondo/common/newt-specific.c
r213 r273 424 424 printf("---FATALERROR--- %s\n", error_string); 425 425 system 426 (" cat /var/log/mondo-archive.log | gzip -9> /tmp/MA.log.gz 2> /dev/null");426 ("gzip -9c /var/log/mondo-archive.log > /tmp/MA.log.gz 2> /dev/null"); 427 427 printf 428 428 ("If you require technical support, please contact the mailing list.\n"); -
branches/2.06/mondo/mondo/mondo-makefilelist
r30 r273 99 99 done 100 100 # exclude lost+found folders, Win9x hibernation file and Win9x swap file 101 cat $TMP/filelist | sort | uniq| \101 sort $TMP/filelist -u | \ 102 102 grep -v "/win386\.swp" | grep -v "/vmmhiber\.w9x" | \ 103 103 grep -v "/hiberfil\.sys" | grep -v "/win386.swp" | grep -v "/pagefile\.sys" | \ … … 108 108 # End patch 109 109 # for i in `cat /etc/fstab | tr -s '\t' ' ' | cut -d' ' -f2` ; do 110 cat $output | grep -vx "$i/lost+found"| grep -vx $i"lost+found" > $output.MID110 grep -vx "$i/lost+found" $output | grep -vx $i"lost+found" > $output.MID 111 111 sync 112 112 mv -f $output.MID $output … … 114 114 # exclude .journal files (ext3) 115 115 for i in `cat /etc/fstab | tr -s '\t' ' ' | grep "ext3" | cut -d' ' -f2` ; do 116 cat $output | grep -vx "$i/\.journal"| grep -vx "$i\.journal" | grep -vx "$i\.autofsck" > $output.MID116 grep -vx "$i/\.journal" $output | grep -vx "$i\.journal" | grep -vx "$i\.autofsck" > $output.MID 117 117 sync 118 118 mv -f $output.MID $output 119 119 done 120 120 # exclude /var/log/pacct and Mondo's temp files 121 cat $output | grep -vx ""| grep -v "/var/log/pacct" | grep -v "tmp\.mondo\.$$" | grep -vx "/var/log/mondo-archive\.log" | grep -v "mondo\.scratch\.$$" > $output.MID121 grep -vx "" $output | grep -v "/var/log/pacct" | grep -v "tmp\.mondo\.$$" | grep -vx "/var/log/mondo-archive\.log" | grep -v "mondo\.scratch\.$$" > $output.MID 122 122 mv -f $output.MID $output 123 123 cp -f $output $TMP/filelist 124 124 # exclude /var/run/*.pid (lockfiles) 125 # cat $output | grep -vx "/var/run/[^\.]*\.pid"> $output.MID125 # grep -vx "/var/run/[^\.]*\.pid" $output > $output.MID 126 126 # mv -f $output.MID $output 127 127 } … … 180 180 for X in $EXCLUDE_PATHS ; do 181 181 if [ ! -d $X ] ; then 182 cat $TMP/filelist.blah | grep -v $X> $TMP/filelist.full182 grep -v $X $TMP/filelist.blah > $TMP/filelist.full 183 183 mv -f $TMP/filelist.full $TMP/filelist.blah 184 184 fi 185 185 done 186 cat $TMP/filelist.blah | grep -v "mojo-jojo-123"> $TMP/filelist.full186 grep -v "mojo-jojo-123" $TMP/filelist.blah > $TMP/filelist.full 187 187 [ ! -e "$TMP/filelist.full" ] && FatalError "Serious error when removing mojo jojo from fielist" 188 188 cp $TMP/filelist.full /tmp -
branches/2.06/mondo/mondo/mondoarchive/mondo-cli.c
r213 r273 869 869 && 870 870 !run_program_and_log_output 871 (" cat /etc/issue.net | grep -i suse| grep 64", TRUE)) {871 ("grep -i suse /etc/issue.net | grep 64", TRUE)) { 872 872 bkpinfo->make_cd_use_lilo = TRUE; 873 873 log_to_screen -
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); -
branches/2.06/mondo/mondo/post-nuke.sample/usr/bin/post-nuke
r30 r273 36 36 sz_add="$3" 37 37 > $newfile 38 cat $oldfile | grep -v "$sz_exclude.*">> $newfile38 grep -v "$sz_exclude.*" $oldfile >> $newfile 39 39 echo "$sz_add" >> $newfile 40 40 } -
branches/2.06/mondo/mondo/restore-scripts/mondo/compare-me
r30 r273 104 104 padded_bfnum=`printf "%07d" $bf_num` 105 105 slice_fname=`GiveSliceName $bf_num $slice_num` 106 checksum=`c at $slice_fname | cut -f1`107 # finalsize=`c at $slice_fname | cut -f2`108 i=`c at $slice_fname | cut -f3`106 checksum=`cut -f1 $slice_fname` 107 # finalsize=`cut -f2 $slice_fname` 108 i=`cut -f3 $slice_fname` 109 109 outputfile=/mnt/RESTORING/"$i" 110 110 echo -n "$i " … … 164 164 outcome=$? 165 165 retval=$(($retval+$outcome)) 166 cat /tmp/rsm.log | grep -v "ignored"> /tmp/rsm.2.log166 grep -v ignored /tmp/rsm.log > /tmp/rsm.2.log 167 167 if [ "$outcome" -ne "0" ] ; then 168 168 echo -e -n " \r" … … 261 261 fi 262 262 263 cat /tmp/compare-me.log \ 264 | grep -v -x "Files [^:]*:-" \ 263 grep -v -x "Files [^:]*:-" /tmp/compare-me.log \ 265 264 | sort | uniq > /tmp/suspect.files 266 265 -
branches/2.06/mondo/mondo/restore-scripts/mondo/grub-MR
r196 r273 64 64 BOOTPATHNAME="" 65 65 for sz in /boot / ; do 66 bootpart=` cat $2 | grep " $sz "| cut -d' ' -f1 | head -n1`66 bootpart=`grep " $sz " $2 | cut -d' ' -f1 | head -n1` 67 67 [ "$bootpart" ] && [ -e "/mnt/RESTORING/$bootpart" ] && break 68 68 done … … 164 164 if echo $bootpart | grep "/md" > /dev/null ; then 165 165 base=`basename $bootpart` 166 line=` cat /proc/mdstat | grep $base| head -n1`166 line=`grep $base /proc/mdstat | head -n1` 167 167 echo "mbrpart was $mbrpart" 168 168 mbrpart=`parted2fdisk -l | grep /dev/ | head -n1 | tr ':' ' ' \ -
branches/2.06/mondo/mondo/restore-scripts/mondo/hack-fstab
r30 r273 30 30 size=`echo "$incoming" | cut -d' ' -f4` 31 31 # echo "'$device' '$mountpoint' '$format' '$size'" > /dev/stderr 32 original_fstab_line=` cat $old_fstab | grep " $mountpoint "| grep -v "#" | tr -s ' ' ' '`32 original_fstab_line=`grep " $mountpoint " $old_fstab | grep -v "#" | tr -s ' ' ' '` 33 33 # echo "original_fstab_line = $original_fstab_line" >> /dev/stderr 34 if [ "` cat $old_fstab | grep "LABEL="`" != "" ] ; then34 if [ "`grep "LABEL=" $old_fstab`" != "" ] ; then 35 35 if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then 36 36 device="LABEL=$mountpoint" … … 89 89 col2=`echo "$incoming" | cut -f2` 90 90 col_rest=`echo "$incoming" | cut -f3-19 | tr -s ' ' ' '` 91 orig="` cat $old_fstab | grep " $col2 "| cut -f1`"91 orig="`grep " $col2 " $old_fstab | cut -f1`" 92 92 if [ "`echo "$orig" | grep "LABEL="`" != "" ] ; then 93 93 echo "orig = $orig" >> /dev/stderr -
branches/2.06/mondo/mondo/restore-scripts/mondo/hack-lilo
r30 r273 54 54 newdev=`GetNewFstabMountpoint $dev` 55 55 if [ ! "$newdev" ] ; then 56 col2=` cat $old_mountlist | grep "$dev "| cut -d' ' -f2`57 col1_new=` cat $new_mountlist | grep " $col2 "| cut -d' ' -f1`56 col2=`grep "$dev " $old_mountlist | cut -d' ' -f2` 57 col1_new=`grep " $col2 " $new_mountlist | cut -d' ' -f1` 58 58 newdev="$col1_new" 59 59 if [ ! "$newdev" ] ; then … … 61 61 fi 62 62 fi 63 # old_fstab_line=` cat $new_fstab | grep "$dev"`63 # old_fstab_line=`grep "$dev" $new_fstab` 64 64 [ "$2" = "other" ] || echo -e -n "\t" 65 65 echo -e "$2=$newdev" … … 135 135 ProcessLilo < $old_lilo >> $outfile 136 136 chmod 600 $outfile 137 cat $bootlistfile | sort | uniq >$bootlistfile137 sort -u $bootlistfile -o $bootlistfile 138 138 139 139 #------ disabled 12/10/01 (doesn't do anything anyway *g*) -
branches/2.06/mondo/mondo/restore-scripts/mondo/label-partitions-as-necessary
r30 r273 28 28 mountline=`mount | grep " $label "` 29 29 # mountpt=`echo "$mountline" | cut -d' ' -f1` 30 ! mountpt=` cat $mountlist | grep " $label "| cut -d' ' -f1`30 ! mountpt=`grep " $label " $mountlist | cut -d' ' -f1` 31 31 if [ ! "$mountpt" ] ; then 32 32 LogIt "Not labeling anything as $label because $mountpt is not a mountpoint" -
branches/2.06/mondo/mondo/restore-scripts/mondo/make-me-bootable
r196 r273 19 19 HAVE_ACTIVE="false" 20 20 for i in `cat $1 | tr -s '\t' ' ' | cut -d' ' -f1 | grep -v "/dev/fd" | grep -v "none" | grep -v "#"` ; do 21 mountpt=` cat $1 | grep "$i "| tr -s '\t' ' ' | cut -d' ' -f2`22 format=` cat $1 | grep "$i "| tr -s '\t' ' ' | cut -d' ' -f3`21 mountpt=`grep "$i " $1 | tr -s '\t' ' ' | cut -d' ' -f2` 22 format=`grep "$i " $1 | tr -s '\t' ' ' | cut -d' ' -f3` 23 23 drive=`echo $i | sed -e 's/[0-9]*$//' -e 's/\([0-9]\)p$/\1/'` 24 24 partno=`echo $i | sed -e 's/^.*[^0-9]\([0-9]*\)$/\1/'` -
branches/2.06/mondo/mondo/restore-scripts/mondo/mount-me
r30 r273 14 14 fi 15 15 16 paths=` cat $mountlist | grep -v " raid "| grep -v "lvm lvm" | tr -s ' ' ' ' | cut -d' ' -f2 | sort`16 paths=`grep -v " raid " $mountlist | grep -v "lvm lvm" | tr -s ' ' ' ' | cut -d' ' -f2 | sort` 17 17 > $mountlist.sorted 18 18 for i in $paths ; do -
branches/2.06/mondo/mondo/restore-scripts/mondo/restore-bigfiles-from-iso
r30 r273 41 41 echo -en "." 42 42 if echo "$slicename" | grep "slice-[0-9]*.00000\.dat" 2> /dev/null; then 43 CHECKSUM=` cat $slicename | head -n1| cut -f1`44 OUTFNAME=` cat $slicename | head -n1| cut -f2`43 CHECKSUM=`head -n1 $slicename | cut -f1` 44 OUTFNAME=`head -n1 $slicename | cut -f2` 45 45 OUTFNAME=`echo "$restorepath/$OUTFNAME" | tr -s '/' '/'` 46 46 echo "Now restoring $OUTFNAME" -
branches/2.06/mondo/mondo/restore-scripts/mondo/stablilo-me
r30 r273 91 91 92 92 WhatIsFirstDriveCalled() { 93 c at /tmp/mountlist.txt | cut -d' ' -f1\93 cut -d' ' -f1 /tmp/mountlist.txt \ 94 94 | sed s/[0-9]// | sed s/[0-9]// \ 95 95 | sort | uniq | head -n 1 -
branches/2.06/mondo/mondo/restore-scripts/mondo/unmount-me
r30 r273 17 17 done 18 18 19 for i in `c at /proc/swaps | cut -d' ' -f1| grep /dev`; do19 for i in `cut -d' ' -f1 /proc/swaps | grep /dev`; do 20 20 swapoff $i 21 21 done -
branches/2.06/mondo/mondo/xmondo/xmondorestore.cpp
r30 r273 5 5 copyright : (C) 2003 by Joshua Oreman 6 6 email : oremanj@get-linux.org 7 cvsid : $Id : xmondorestore.cpp,v 1.1 2004/06/10 16:13:06 hugo Exp$7 cvsid : $Id$ 8 8 ***************************************************************************/ 9 9 … … 275 275 if (!r->rFilter->text().isEmpty() && !r->rFilter->text().isNull()) { 276 276 r->fStatusMsg->setText (QString ("Filtering filelist through regexp <tt>%1</tt>...").arg (r->rFilter->text())); 277 if (system (QString (" cat %1 | egrep '%2'> %3.FILT").arg (g_filelist_full).arg (r->rFilter->text()).arg (g_filelist_full).ascii()) != 0) {277 if (system (QString ("egrep '%2' %1 > %3.FILT").arg (g_filelist_full).arg (r->rFilter->text()).arg (g_filelist_full).ascii()) != 0) { 278 278 r->fStatusMsg->setText ("Filter failed, using whole filelist"); 279 279 rename (g_filelist_full, QString ("%1.FILT").arg (g_filelist_full).ascii());
Note:
See TracChangeset
for help on using the changeset viewer.