Changeset 273 in MondoRescue for branches/2.06/mondo/mondo/common/X-specific.cpp
- Timestamp:
- Jan 3, 2006, 4:09:12 PM (18 years ago)
- File:
-
- 1 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");
Note:
See TracChangeset
for help on using the changeset viewer.