File: latprint.sh

package info (click to toggle)
latd 1.35
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 724 kB
  • ctags: 780
  • sloc: cpp: 8,485; sh: 145; makefile: 44
file content (22 lines) | stat: -rw-r--r-- 496 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# latprint.sh
#
# This is an example script for using latd as a LAT printer server.
# Use the commands below substituting the bits in CAPS for your own.
#
# on Linux:
#   latcp -A -a PRINTER -C '/bin/sh /usr/local/sbin/latprint.sh' -u root
#
# on VMS:
#   mcr latcp create port lta999
#   mcr latcp set port lta999/noqueue/service=PRINTER/node=LINUX
#   init/queue/process=latsym/on=lta999:/start LINUXLAT
#

trap "" 1
stty -echo

cat > /tmp/latprint$$
lpr -r -oraw /tmp/latprint$$