Como manter o stdout completo com sua saída do período de transição?
Como no exemplo típico a seguir, você pode ver que o status de atualização dos metadados yum não seria redirecionado para seu yr.log.
Portanto, a minha pergunta é como reter estes resultados durante o período de transição.
#
# yum -v repolist
Not loading "rhnplugin" plugin, as it is disabled
Not loading "product-id" plugin, as it is disabled
Loading "refresh-packagekit" plugin
Loading "security" plugin
Not loading "subscription-manager" plugin, as it is disabled
Config time: 0.015
Yum Version: 3.2.29
RHEL_6.4_x86-64 | 3.9 kB 00:00 ...
RHEL_6.4_zlocal | 2.9 kB 00:00 ...
Setting up Package Sacks
pkgsack time: 0.012
Repo-id : RHEL_6.4_x86-64
Repo-name : RHEL_6.4_x86-64_dvd_all
Repo-revision: 1359576928
Repo-updated : Thu Jan 31 04:22:56 2013
Repo-pkgs : 3,648
Repo-size : 3.2 G
Repo-baseurl : file:///mnt/
Repo-expire : 21,600 second(s) (last: Wed Jun 26 08:26:11 2024)
Repo-id : RHEL_6.4_zlocal
Repo-name : RHEL_6.4_x86-64_dvd_zlocal
Repo-revision: 1715738735
Repo-updated : Wed Mar 31 17:26:56 2021
Repo-pkgs : 3,720
Repo-size : 3.2 G
Repo-baseurl : file:///install/rhel_6.4_x86_64/
Repo-expire : 21,600 second(s) (last: Wed Jun 26 08:26:11 2024)
repolist: 7,368
#
#
#
# yum -v repolist 1> /tmp/yr.log 2> /tmp/yr.err
#
#
# cat /tmp/yr.log
Not loading "rhnplugin" plugin, as it is disabled
Not loading "product-id" plugin, as it is disabled
Loading "refresh-packagekit" plugin
Loading "security" plugin
Not loading "subscription-manager" plugin, as it is disabled
Config time: 0.069
Yum Version: 3.2.29
Setting up Package Sacks
pkgsack time: 0.712
Repo-id : RHEL_6.4_x86-64
Repo-name : RHEL_6.4_x86-64_dvd_all
Repo-revision: 1359576928
Repo-updated : Thu Jan 31 04:22:56 2013
Repo-pkgs : 3,648
Repo-size : 3.2 G
Repo-baseurl : file:///mnt/
Repo-expire : 21,600 second(s) (last: Wed Jun 26 15:24:26 2024)
Repo-id : RHEL_6.4_zlocal
Repo-name : RHEL_6.4_x86-64_dvd_zlocal
Repo-revision: 1715738735
Repo-updated : Wed May 15 10:06:56 2024
Repo-pkgs : 3,720
Repo-size : 3.2 G
Repo-baseurl : file:///install/rhel_6.4_x86_64/
Repo-expire : 21,600 second(s) (last: Wed Jun 26 15:24:27 2024)
repolist: 7,368
#
Usando a função script -q -c para capturar o log do medidor de progresso.