Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/lib/lp/spooler/lpdspool+fonts

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

if (! ~ $DEBUG '') flag x +

if (~ $#* 0) *='/fd/0'

for (j in $*) {
	if (~ $j '/fd/0' || test -f $j) {
		@{bind -b $LPLIB/process /bin; $LPPROC} < $j | 
		aux/download -f -H/sys/lib/postscript/font -mfontmap -plw+ |
		/$cputype/bin/aux/lpdsend -d$OUTDEV -tf -H$LPMACHID -P$LPUSERID $DEST_HOST >[2]$LPLOGDIR/$LPDEST^.st
	}
	if not {
		echo $j cannot be opened >[1=2]
	}
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.