Changeset 127 in MondoRescue for trunk/mondo/mondo/common/newt-specific.c
- Timestamp:
- Nov 19, 2005, 2:27:31 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/newt-specific.c
r121 r127 313 313 314 314 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"); 316 316 if (!strstr(g_version, "cvs") && !strstr(g_version, "svn")) { 317 317 printf("Please try the latest SVN version "); … … 427 427 } 428 428 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); 434 433 } 435 434 fin = popen(command, "r");
Note:
See TracChangeset
for help on using the changeset viewer.