home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
printer
/
prt104.lha
/
prt.doc
< prev
next >
Wrap
Text File
|
1989-08-13
|
4KB
|
91 lines
PRT - A Print File Utility
This program allows text files to be printed to the printer device with
file headers on each page. Page headers includes the name of the file,
the current date and time, and a page number. Embedded <form feed>
characters (^L) force a page break, printing a new page header. Many
command line options are available (see format below).
format: prt [-h -f -pnn -snn -enn -cnn -o] file [file [file]]
where: -h - toggles the default value of the page header flag
-f - toggles the default value of the form feed flag
-pnn - changes the page size from 57 to `nn'
-snn - changes the starting page number (default = 1)
-enn - stop (end) printing when page 'nn' encountered
-cnn - changes characters/line count (default = 80)
-o - send output to a file instead of the printer
author: alfredo jahn v
date: 13-aug-89
release: Version 1.04
-----------------------------------------------------------------------------
Sample page header for file "sys:bbs/Readme":
File: sys:bbs/Readme Sat 05-Aug-89 22:56:15 page 1
NOTE: the timestamp on the page header is the "current" date and time (not
the date/time of the file itself).
PRT Examples:
-------------
prt - Display help information on "prt"
prt -? - (same as above)
prt -h phone-list - Print the file "phone-list" without
page headers
prt -p40 -f test.c - Don't form feed on 1st page and
change page size to 40 lines per page
prt phone-list test.c - Print multiple files
prt -s4 prt.c - Print file "prt.c" starting on
page number 4 (print to end of file)
prt -s4 -5 prt.c - Print ONLY page number 4
prt -c132 long_line_file - Select 132 characters per line
prt -otest.out test.c - Send printer output to a file instead.
(NOTE: output file is overwritten!)
run prt sys:s/startup-sequence - spawn a PRT sub-process
prt -oBIGFILE ptr.c README - Send multiple files to the same output file
"BIGFILE" (NOTE: all files are appended to
the same output file.
NOTE: Command line options (flags) can go anywhere on the command line.
Each option must be preceded by a "-". For example, -fh will only affect
the "f" flag; you must use -f -h to affect both the "f" and "h" flags.
On my AMIGA 2000 system I use the alias "pr" to be "run C:prt ". This allows
me to just type "pr filename" and "spawn" the PRT program (kind of like a
print spooler... see WARNING below!).
*** WARNING *** *** WARNING *** *** WARNING *** *** WARNING ***
This program is NOT a print SPOOLER!!! Run(ning) "prt" while the printer is
currently printing a file can cause big problems. Output is sent directly
to the printer; whether it is printing or not!!
-----------------------------------------------------------------------------
I am placing this program in the Public Domain. Please feel free to pass it
on to anyone you wish; just don't sell it. I am including the source for
those of you who would like to know how it was done. It has some good examples
on how to access the system time-of-day clock, how to process command line
options, etc. PLEASE DON'T RIP IT OFF FOR PROFIT! Hope you enjoy it.
Send any bug information or comments to:
Alfredo Jahn V
3208 Cole Ave., #1303
Dallas, TX 75204
214-855-1317
[ Or send mail on AmigaScope BBS - (214) 288-1537 ]