home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / printer / prt104.lha / prt.doc < prev    next >
Text File  |  1989-08-13  |  4KB  |  91 lines

  1.  
  2.                          PRT - A Print File Utility
  3.  
  4.   This program allows text files to be printed to the printer device with 
  5.   file headers on each page.  Page headers includes the name of the file,
  6.   the current date and time, and a page number.  Embedded <form feed> 
  7.   characters (^L) force a page break, printing a new page header.  Many 
  8.   command line options are available (see format below).
  9.  
  10.  
  11.   format:    prt [-h -f -pnn -snn -enn -cnn -o] file [file [file]]
  12.  
  13.       where: -h   - toggles the default value of the page header flag
  14.              -f   - toggles the default value of the form feed flag
  15.              -pnn - changes the page size from 57 to `nn'
  16.              -snn - changes the starting page number (default = 1)    
  17.              -enn - stop (end) printing when page 'nn' encountered
  18.              -cnn - changes characters/line count (default = 80)
  19.              -o   - send output to a file instead of the printer
  20.  
  21.   author:    alfredo jahn v
  22.   date:      13-aug-89
  23.   release:   Version 1.04
  24.  
  25. -----------------------------------------------------------------------------
  26.  
  27. Sample page header for file "sys:bbs/Readme":
  28.  
  29. File: sys:bbs/Readme                        Sat  05-Aug-89 22:56:15    page 1
  30.  
  31.  
  32. NOTE: the timestamp on the page header is the "current" date and time (not
  33. the date/time of the file itself).
  34.  
  35. PRT Examples:
  36. -------------
  37.  
  38.   prt                            - Display help information on "prt"
  39.   prt -?                         - (same as above)
  40.   prt -h phone-list              - Print the file "phone-list" without 
  41.                                    page headers
  42.   prt -p40 -f test.c             - Don't form feed on 1st page and
  43.                                    change page size to 40 lines per page
  44.   prt phone-list test.c          - Print multiple files
  45.   prt -s4 prt.c                  - Print file "prt.c" starting on 
  46.                                    page number 4 (print to end of file)
  47.   prt -s4 -5 prt.c               - Print ONLY page number 4
  48.   prt -c132 long_line_file       - Select 132 characters per line
  49.   prt -otest.out test.c          - Send printer output to a file instead.
  50.                                    (NOTE: output file is overwritten!)
  51.   run prt sys:s/startup-sequence - spawn a PRT sub-process 
  52.  
  53.   prt -oBIGFILE ptr.c README     - Send multiple files to the same output file
  54.                                    "BIGFILE" (NOTE: all files are appended to 
  55.                                    the same output file.
  56.  
  57. NOTE: Command line options (flags) can go anywhere on the command line. 
  58. Each option must be preceded by a "-".  For example, -fh will only affect
  59. the "f" flag; you must use -f -h to affect both the "f" and "h" flags.
  60.  
  61.  
  62. On my AMIGA 2000 system I use the alias "pr" to be "run C:prt ".  This allows
  63. me to just type "pr filename" and "spawn" the PRT program (kind of like a
  64. print spooler... see WARNING below!).  
  65.  
  66.  
  67.   *** WARNING ***    *** WARNING ***    *** WARNING ***    *** WARNING ***  
  68.  
  69. This program is NOT a print SPOOLER!!!  Run(ning) "prt" while the printer is 
  70. currently printing a file can cause big problems.  Output is sent directly
  71. to the printer; whether it is printing or not!!
  72.  
  73. -----------------------------------------------------------------------------
  74.  
  75. I am placing this program in the Public Domain.  Please feel free to pass it
  76. on to anyone you wish; just don't sell it.  I am including the source for 
  77. those of you who would like to know how it was done.  It has some good examples
  78. on how to access the system time-of-day clock, how to process command line
  79. options, etc.  PLEASE DON'T RIP IT OFF FOR PROFIT!  Hope you enjoy it.  
  80.  
  81. Send any bug information or comments to:
  82.  
  83.  
  84.         Alfredo Jahn V
  85.         3208 Cole Ave., #1303
  86.         Dallas, TX 75204
  87.  
  88.         214-855-1317
  89.  
  90.         [ Or send mail on AmigaScope BBS - (214) 288-1537 ]
  91.