Olaf Corten's OCUS help page for print

Help and/or history for print

See also entry in DESCRIPTION file

Usage: print [options] plotfile

	Prints a file with lpr. If no options are given it checks the format
	of the plotfile and sends it to an appropriate printer. If the
	file is a Postscript file it adds a date label and sends it to a
	printer depending on the location alias of this host.
	If HPGL file < A1 search for ps with the same name and print that.

	options:	-h 		=> this help screen 
			-p NAME		=> send to printer NAME:
						lpr_eins_4mv (via zefifs01)
						lp_750c (via f9)
						lpr_750c (via zefifs01)
						lpr_d_750c (rechtreeks)
						lp_1600c (via f9)
						lpr_dj1600 (rechtsreeks)
						lpr_eins (5mv alleen A4)
						tektronix (via f11)
						lp_hp4p_bbm (PII via f9)
					   Use 'lpstat -a' for a list of
					   available lp printers.
					   Use 'echo status | /usr/etc/lpc' for
					   a list of available lpr printers.
			-s A4		=> force Postscript size to A4
			   A3		=> force Postscript size to A3
			   check	=> if HPGL = A0 - A1 print ps A3
			   		   if HPGL = A2 - A4 print ps A4
					   (e.g. 'print -s check *.hp2')
			   check2	=> if HPGL = A0 - A2 print ps A3
			   		   if HPGL = A3 - A4 print ps A4
			   real		=> if HPGL = A0 - A2 print HPGL
			   		   if HPGL = A3 - A4 print ps
			-n NAME		=> remote printer server hostname
			-t		=> Add postscript paper tray selection
					   (pre-R17)
			-x		=> no label
			-b		=> send plotfile to batch plot dir.
					   These will be sent to the plotter at
					   midnight by plot_batch.csh script.
			-r		=> Remove label if it has been added.
			-l u		=> Add 'UITGIFTE' label.
			-l i		=> Add 'INFORMATION ONLY' label.
			-l c		=> Add 'CONFIDENTIAL' label.
			-l xxx		=> Otherwise treated as printer location
					   Where xxx = p1,engineering,werkplaats
					   	       p2
			-o		=> Overwrite existing plotfile when
					   adding labels.
			-q		=> Run quietly
			-d		=> display file, don't plot
			-v		=> verify mode, don't plot

Author: Olaf Corten, the Netherlands
E-Mail: olafc@molding.fico.nl or ocorten@knoware.nl
WWW: http://utopia.knoware.nl/~ocorten

################################################################################
# History
#
# 20000321 Added -oraw to lp for HPGL2 command.
# 20000221 Added -c option to lp command.
# 19991215 Added -s real and -v option.
# 19991009 Fixed 'cannot stat' error when date stamp can't be added.
# 19990708 Added -s check2 option.
# 19990708 Added -s check option.
# 19990630 Fixed direct plotting (print used in pipe). Also fixed toggling
#	   between tmpfiles.
# 19990625 Plotfiles are now copied to temp files (added -o option).
#	   Added -d option.
# 19990413 Changed -l to label options (old location options still and
#	   old -i and -u options still valid).
#	   Added -l c.
# 19990219 Changed SCRIPTS_DIR extraction.
# 19980904 Added -u and -i option.
# 19980616 Added -r option.
# 19980513 HPGLs printing now goes through the f9 directly to the plotter.
#	   Using lp dj750c instead of lpr 
# 19980216 Added BURST_OPTION (-J/nb/nff for Laserjet, -h for Deskjet)
# 19980206 Added extra check for Postscript recognized as HPGL2.
# 19980203 Ported postscript size converter to script convert_postscript_size.
# 19971222 Added lpr_dj1600 printer.
# 19971114 Fixed not forcing size when printing multiple postsrcipt files
#	   Fixed not printing text files with spaces in first 4 characters.
# 19970916 Fixed for move to nijverheidstraat.
# 19970827 Added Conversion form A3 to A4 (and vice versa) for Postscript files.
# 19970728 Added check for .Z extension.
# 19970715 You can now redirect output to this script: E.G. cat file | print
#	   Added cd `pwd` to remsh command.
# 19970528 Added -b option.
# 19970506 Now label only added when the name Pro/ENGINEER is present in the
#	   header. Added -s option.
#	   Started history.
#
# Universal print script for Fico.
#
################################################################################