Mailinglist Archive: opensuse-softwaremgmt (12 mails)
| < Previous | Next > |
Re: [softwaremgmt] [10.2]: Zypper and output redirection.
- From: Lars Behrens <lars.behrens@xxxxxxxxx>
- Date: Tue, 14 Aug 2007 13:51:25 +0200
- Message-id: <200708141351.26315.lars.behrens@xxxxxxxxx>
Am Monday 13 August 2007 18:00 schrieben Sie:
> try
> zypper up 2> /dev/null
> the 2 is for standard error instead of standard output.
Normally that would be the opposite of what I want, as it would kill the error
messages, which I want to receive from cron. But after a bit of tinkering, it
seems to me that zypper uses stderr for both stderr *and* stdout.
So I have to find a different way to inform me about failed upgrades.
> Did you use exit codes, too?
No, but it seems that I have to :-)
> I'm interested in the script,
I can post it when it's ready.
> since the one you get from yast - automatic
> update is
> a) creating mails for nothing
Like zypper? :-)
> b) not doing a SuSEconfig
Hmm, never thought of that. Does zypper? Is there a logfile for SuSEconfig?
Maybe I should call SuSEconfig from the script...
Cheerz Lars
--
Universität Karlsruhe (TH)
Physikalisches Institut
0721/608-3448
lars.behrens@xxxxxxxxxxxxxxxxxxxxxxx
--
To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-softwaremgmt+help@xxxxxxxxxxxx
> try
> zypper up 2> /dev/null
> the 2 is for standard error instead of standard output.
Normally that would be the opposite of what I want, as it would kill the error
messages, which I want to receive from cron. But after a bit of tinkering, it
seems to me that zypper uses stderr for both stderr *and* stdout.
So I have to find a different way to inform me about failed upgrades.
> Did you use exit codes, too?
No, but it seems that I have to :-)
> I'm interested in the script,
I can post it when it's ready.
> since the one you get from yast - automatic
> update is
> a) creating mails for nothing
Like zypper? :-)
> b) not doing a SuSEconfig
Hmm, never thought of that. Does zypper? Is there a logfile for SuSEconfig?
Maybe I should call SuSEconfig from the script...
Cheerz Lars
--
Universität Karlsruhe (TH)
Physikalisches Institut
0721/608-3448
lars.behrens@xxxxxxxxxxxxxxxxxxxxxxx
--
To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-softwaremgmt+help@xxxxxxxxxxxx
| < Previous | Next > |