[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: man sed | lpr wont work ?



Travis Crump wrote:

Dave Selby wrote:

How can I print a man page from the command line ?
At present I have to boot into kde, Konqueror man:sed for example then print. This is OK but cumbersome.
I have tried man sed | lpr man sed > lpr etc

Many thanks
Dave



man man ... ;)

Try 'man -Tps sed | lpr'

Err never thought of man man ! Why does it seem so obvious ..... afterwards ....

According to man man

" man -t alias | lpr -Pps
          Format  the manual page referenced by `alias', usually
          a shell manual page, into the default troff  or  groff
          format  and  pipe  it  to  the  printer named ps.  The
          default output for groff is usually  PostScript.   man
          --help should advise as to which processor is bound to
          the -t option."

web@debian:~$ man -t sed | lpr
/usr/bin/groff: can't find `DESC' file
/usr/bin/groff:fatal error: invalid device `ps'
man: command exited with status 768: /usr/bin/zsoelim /tmp/zmanJfCZ5K | /usr/bin/groff -mandoc
lpr: stdin is empty, so no job has been sent.
web@debian:~$

So I tried your more advanced solution ...
"Try 'man -Tps sed | lpr' "

web@debian:~$ man -Tps sed | lpr
/usr/bin/groff: can't find `DESC' file
/usr/bin/groff:fatal error: invalid device `ps'
man: command exited with status 768: /usr/bin/zsoelim /tmp/zmanOdcwc7 | /usr/bin/groff -mandoc -Tps -P-g
lpr: stdin is empty, so no job has been sent.
web@debian:~$

So groff cant find DESC file !

so man groff gives

"FILES
      /usr/share/groff/1.17.2/font/devname/DESC
             Device description file for device name."

I can cd up to .../font/ but after that I have ...

debian:/home/web#
debian:/home/web# cd /usr/share/groff/1.17.2/font/dev
devascii   devascii8  devlatin1  devnippon  devutf8
debian:/home/web# cd /usr/share/groff/1.17.2/font/dev

So im missing a font file for which device ?
This is where I run out of steam !

Dave








Reply to: