Miscellaneous Applications

  1.  How to print man pages

  2. say command find,
    (a) man find | col -b > find.txt
    (b) nroff -man find.man | col -b >find.txt
     
  3. How to print  a file prettily with the below format in Solaris?

  4. (a) in portrait mode, one page of text per sheet of paper
    (b) in landscape mode, two pages of text per sheet of pager
    (c) in landscape mode, one page of text per sheet of paper

    Answer:
    Set up user environment in .cshrc or .profile using alias:

    alias    printP    'mp -o -s "\!*" < \!* | lpr'
    alias    print      'mp -l -o -s "\!*" < \!* | lpr'
    alias    printL    'mp -p mp.pro.one1.ps -o -s "\!*" < \!* | lpr'

    Note:
    (1) This will output to default printer, if you want to use other printer, you
    need to point to that printer name.
    (2) The file of mp.pro.one1.ps is a supplied  prologue file, please refer to the
    default file is located in $OPENWINHOME/share/xnews/client/mp, you need
    to modify some lines.
     

  5. FTP Issue

  6. You want to create FTP accounts on UNIX, and use /bin/ksh as ftp login,
    but after setting is done, you can't ftp in, why?
    Answer:
    FTP shell access control is defined in a file /etc/shells.
    You can add /bin/ksh into this file, then should be ok.