003 File Manager
Current Path:
/usr/src/share/examples/printing
usr
/
src
/
share
/
examples
/
printing
/
📁
..
📄
diablo-if-net
(227 B)
📄
hpdf
(1.12 KB)
📄
hpif
(332 B)
📄
hpof
(176 B)
📄
hprf
(158 B)
📄
hpvf
(208 B)
📄
if-simple
(196 B)
📄
if-simpleX
(267 B)
📄
ifhp
(696 B)
📄
make-ps-header
(1.45 KB)
📄
netprint
(690 B)
📄
psdf
(199 B)
📄
psdfX
(652 B)
📄
psif
(544 B)
📄
pstf
(155 B)
📄
pstfX
(123 B)
Editing: psif
#!/bin/sh # # psif - Print PostScript or plain text on a PostScript printer # Script version; NOT the version that comes with lprps # Installed in /usr/local/libexec/psif # read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then # # PostScript job, print it. # echo "$first_line" && cat && printf "\004" && exit 0 exit 2 else # # Plain text, convert it, then print it. # ( echo "$first_line"; cat ) | /usr/local/bin/textps && printf "\004" && exit 0 exit 2 fi
Upload File
Create Folder