Ignore:
Timestamp:
Nov 19, 2005, 2:27:31 AM (14 years ago)
Author:
bcornec
Message:

merge -r 125:126 $SVN_M/branches/2.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/common/newt-specific.c

    r121 r127  
    313313
    314314        system
    315             ("cat /var/log/mondo-archive.log | gzip -9 > /tmp/MA.log.gz 2> /dev/null");
     315            ("gzip -9c /var/log/mondo-archive.log > /tmp/MA.log.gz 2> /dev/null");
    316316        if (!strstr(g_version, "cvs") && !strstr(g_version, "svn")) {
    317317            printf("Please try the latest SVN version ");
     
    427427        }
    428428        if (grep_for_me[0] != '\0') {
    429             asprintf(&command, "cat %s | grep \"%s\" | tail -n%d",
    430                      filename, grep_for_me, g_noof_log_lines);
    431         } else {
    432             asprintf(&command, "cat %s | tail -n%d", filename,
    433                      g_noof_log_lines);
     429            asprintf(&command, "grep '%s' %s | tail -n%d",
     430                     grep_for_me, filename, g_noof_log_lines);
     431        } else {
     432            asprintf(&command, "tail -n%d %s", g_noof_log_lines, filename);
    434433        }
    435434        fin = popen(command, "r");
Note: See TracChangeset for help on using the changeset viewer.