[Comm] man через ssh
Alexey Bochenin
bochenin на avtlg.ru
Чт Фев 24 06:07:53 UTC 2011
Подскажите, пожалуйста, чем могут быть вызваны сообщения в SSH-консоли
типа ниже приведенных?
$ ssh localhost man strace|head
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /usr/share/man/man1/strace.1.bz2, output file = (stdout)
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /usr/share/man/man1/strace.1.bz2, output file = (stdout)
STRACE(1) STRACE(1)
NAME
strace - trace system calls and signals
Мануал при этом показывается на экране, так что ошибка вроде не
критичная. Что любопытно, возникает она лишь при просмотре больших
руководств, типа man bash, man ls, и др. А при просмотре небольших манов
объемом около 100 строк (man df) - в консоли нет ошибок.
Система - x86_64, Сизиф примерно на начало февраля.
$ rpm -q man
man-1.6f-alt11
$ man -d strace
Reading config file /etc/man.conf
found man directory /usr/share/man
found man directory /usr/X11R6/man
found man directory /usr/local/man
found man directory /usr/local/share/man
found manpath map /bin --> /usr/share/man
found manpath map /sbin --> /usr/share/man
found manpath map /usr/bin --> /usr/share/man
found manpath map /usr/sbin --> /usr/share/man
found manpath map /usr/local/bin --> /usr/local/share/man
found manpath map /usr/local/sbin --> /usr/local/share/man
found manpath map /usr/X11R6/bin --> /usr/X11R6/man
found manpath map /usr/bin/X11 --> /usr/X11R6/man
found manpath map /usr/bin/mh --> /usr/share/man
using /usr/bin/less -isR as pager
using /usr/bin/less -isR as browser
using /bin/cat to dump HTML pages as text
path directory /home/bochenin/bin is not in the config file
and we found no man directory nearby
path directory /bin is in the config file
adding /usr/share/man/ru to manpath
adding /usr/share/man to manpath
path directory /usr/bin is in the config file
path directory /usr/local/bin is in the config file
adding /usr/local/share/man to manpath
path directory /usr/X11R6/bin is in the config file
adding /usr/X11R6/man to manpath
path directory /usr/games is not in the config file
and we found no man directory nearby
adding mandatory man directories
adding /usr/local/man to manpath
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /usr/share/man/man1/strace.1.bz2, output file = (stdout)
no cat page stored because of nonstandard line length
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: Broken pipe
Input file = /usr/share/man/man1/strace.1.bz2, output file = (stdout)
using default preprocessor sequence
man:
not executing command:
(cd "/usr/share/man" && man-source '/usr/share/man/man1/strace.1.bz2'
'153' '1100i' | /usr/bin/nroff -S -p -t -Dkoi8-r -mtty -mandoc |
/usr/bin/less -isR)
Если попробовать запустить в SSH-консоли
sh -c "(cd /usr/share/man && man-source
'/usr/share/man/man1/strace.1.bz2' '153' '1100i' | /usr/bin/nroff -S -p
-t -Dkoi8-r -mtty -mandoc | /usr/bin/less -isR)"
то ошибок нет
--
WBR, Alexey
Подробная информация о списке рассылки community