[Bug 336333] New: zypper: suppress escape sequence if tty is missing
https://bugzilla.novell.com/show_bug.cgi?id=336333 Summary: zypper: suppress escape sequence if tty is missing Product: openSUSE 10.3 Version: Final Platform: Other OS/Version: openSUSE 10.3 Status: NEW Severity: Enhancement Priority: P5 - None Component: libzypp AssignedTo: jkupec@novell.com ReportedBy: kssingvo@novell.com QAContact: dmacvicar@novell.com Found By: Development I'm using zypper to do regular check for updates on my machine and in special cases (= not every time) let zypper install them. I do this via cronjob and log the output into file. This file grows very large, as there are a lot of escape sequences in the output: the spinning wheel, or the percent gauge. I'm using the "-n" option and still it's far too much (150kB last night). The commandline options are: - For checking new updates: /usr/bin/zypper -n -t list-updates 2>/dev/null >$tmpfile - In case I allow doing the update (which I logged): /usr/bin/zypper -n -t update >$tmpfile 2>&1 My enhancement request is this: if there is no $TTY set (like in cronjob), then reduce the output of zypper to minium lines and print the result only. Maybe the terse option should be more restrictive? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=336333#c1
--- Comment #1 from Klaus Singvogel
https://bugzilla.novell.com/show_bug.cgi?id=336333#c2
Ján Kupec
https://bugzilla.novell.com/show_bug.cgi?id=336333#c3
--- Comment #3 from Klaus Singvogel
https://bugzilla.novell.com/show_bug.cgi?id=336333#c4
--- Comment #4 from Klaus Singvogel
https://bugzilla.novell.com/show_bug.cgi?id=336333
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=336333#c5
--- Comment #5 from Ján Kupec
I think "-q" needs to be worked on, to be really quiet.
True, see also bug 359188. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=336333
User jkupec@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=336333#c6
Ján Kupec
participants (1)
-
bugzilla_noreply@novell.com