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: ifhp
#!/bin/sh # # ifhp - Print Ghostscript-simulated PostScript on a DesJet 500 # Installed in /usr/local/libexec/hpif # # Treat LF as CR+LF: # printf "\033&k2G" || exit 2 # # Read first two characters of the file # read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then # # It is PostScript; use Ghostscript to scan-convert and print it # /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=djet500 -sOutputFile=- - \ && exit 0 else # # Plain text or HP/PCL, so just print it directly; print a form # at the end to eject the last page. # echo "$first_line" && cat && printf "\f" && exit 0 fi exit 2
Upload File
Create Folder