Mailinglist Archive: opensuse-softwaremgmt (12 mails)
| < Previous | Next > |
Re: [softwaremgmt] [10.2]: Zypper and output redirection.
- From: Andreas Vetter <vetter@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 13 Aug 2007 18:00:15 +0200 (CEST)
- Message-id: <Pine.LNX.4.64.0708131753550.5541@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Mon, 13 Aug 2007, Lars Behrens wrote:
> As I only want to be informed by cron if an update failed, I want to use
> something like
>
> 'X X * * * updatescript_wich_calls_zypper 1> /dev/null'
>
> as cronjob. Unfortunatelly that doesn't work as zypper gives his output in a
> way that i don't understand.
>
> Quite obviously stdout doesn't get used because a 'zypper up > /dev/null'
> still renders output in the shell.
try
zypper up 2> /dev/null
the 2 is for standard error instead of standard output.
Did you use exit codes, too?
I'm interested in the script, since the one you get from yast - automatic
update is
a) creating mails for nothing
b) not doing a SuSEconfig
best regards,
Andreas
--
To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-softwaremgmt+help@xxxxxxxxxxxx
> As I only want to be informed by cron if an update failed, I want to use
> something like
>
> 'X X * * * updatescript_wich_calls_zypper 1> /dev/null'
>
> as cronjob. Unfortunatelly that doesn't work as zypper gives his output in a
> way that i don't understand.
>
> Quite obviously stdout doesn't get used because a 'zypper up > /dev/null'
> still renders output in the shell.
try
zypper up 2> /dev/null
the 2 is for standard error instead of standard output.
Did you use exit codes, too?
I'm interested in the script, since the one you get from yast - automatic
update is
a) creating mails for nothing
b) not doing a SuSEconfig
best regards,
Andreas
--
To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-softwaremgmt+help@xxxxxxxxxxxx
| < Previous | Next > |