summaryrefslogtreecommitdiff
path: root/sys/lib/lp/spooler/lpdspool
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 16:53:33 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 16:53:33 +0300
commite463eb40363ff4c68b1d903f4e0cdd0ac1c5977f (patch)
treed5e9f57c28f026cb21de3bd77cc10cd7f64aaa85 /sys/lib/lp/spooler/lpdspool
parentb41b9034225ab3e49980d9de55c141011b6383b0 (diff)
Import sources from 2011-03-30 iso image - sys/lib
Diffstat (limited to 'sys/lib/lp/spooler/lpdspool')
-rwxr-xr-xsys/lib/lp/spooler/lpdspool14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys/lib/lp/spooler/lpdspool b/sys/lib/lp/spooler/lpdspool
new file mode 100755
index 000000000..cf8ad8c89
--- /dev/null
+++ b/sys/lib/lp/spooler/lpdspool
@@ -0,0 +1,14 @@
+#!/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 | /$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]
+ }
+}