niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Tru64
Ghostscript Help Desparately Needed
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
simon@hslc.org
*nix forums beginner


Joined: 13 Oct 2005
Posts: 1

PostPosted: Thu Oct 13, 2005 1:19 pm    Post subject: Ghostscript Help Desparately Needed Reply with quote

I am trying to get a HP DeskJet 940C to work with an AlphaStatino
XP1000 running Tru64 Unix 5.1B. I have downloaded, built, and
installed Ghostscript 8.51. I have configured the system as follows:

/etc/printcap (-rw-r--r-- 1 root system)
-------------
lp|lp0|0|HP DeskJet 940c:\
:af=/usr/adm/lp0acct:\
:br#9600:\
:ct=dev:\
:if=/usr/local/bin/printfilter_dj940c:\
:lf=/usr/adm/lp0err:\
:lp=/dev/lp0:\
:mx#0:\
:sd=/usr/spool/lpd0:\
:sh:

/usr/local/bin/printfilter_dj940c (-rwxr-xr-x 1 root system)
---------------------------------------------------------------

#!/bin/sh
# printfilter_dj940c - Ghostscript simulated Postscript for HP Ink Jet
Server (i
js)
# /usr/local/bin/printfilter_dj940c

# Treat CR 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
# Postscript job, print it.
exec 3>&1 1>&2
/usr/local/bin/gs \
-dDEBUG \
-dBATCH \
-dIjsUseOutputFD \
-dNOPAUSE \
-dPARANOIDSAFER \
-dQUIET \
-q \
-sDEVICE=ijs \
-sDeviceManufacturer="HEWLETT-PACKARD" \
-sDeviceModel="DESKJET 940" \
-sIjsServer=/usr/local/bin/hpijs \
-sOutputFile=/dev/fd/3 - && exit 0
else
# Plain text: convert it, then print it.
echo $first_line && cat && printf "\033&10H" && exit 0
fi

exit 2
#


/usr/local/bin/hpijs (-rwxr-xr-x 1 root system)

/dev/fd (drwxrwxrwx 2 daemon system)

Printing a non-postscript file works perfectly.

When I try to print a postscript file, the data light on the printer
blinks
for about 15 seconds and then the error light blinks. I get the
following error in /var/adm/syslog.dated/current/lpr.log:

Oct 12 09:01:48 sci lpd[50504]: WARNING -- read_some_chars: select()
failed, error: Permission denied

This is the contents of /var/adm/lp0err:

START 0 1499240 202738 1301376 17484 true 515 3 <0>
END PROCS 0 1519424 228974 1301376 19964 true 633 3 <0>
gs_std_e.ps 0 1559792 247973 1321560 25860 true 641 3 <0>
gs_il1_e.ps 17 1559792 252791 1321560 25860 true 642 3 <0>
END FONTDIR/ENCS 17 1559792 253019 1321560 25860 true 644 3 <0>
END DEVS 33 1564888 264912 1321560 25860 true 648 3 <0>
END STATD 33 1585072 281227 1321560 28740 true 653 3 <0>
END GS_FONTS 33 1645624 336044 1321560 28740 true 701 3 <0>
END BASIC COLOR 33 1645624 348929 1321560 28740 true 716 3 <0>
END LEVEL 1 COLOR 33 1665808 355490 1321560 28740 true 717 3 <0>
END IMAGE 33 1665808 361996 1321560 28740 true 722 3 <0>
gs_btokn.ps 33 1665808 367626 1321560 28740 true 725 3 <0>
gs_dps1.ps 33 1665808 370794 1321560 28740 true 727 3 <0>
gs_dps2.ps 33 1685992 384102 1321560 28740 true 728 3 <0>
gs_type1.ps 33 1685992 387093 1321560 28740 true 735 3 <0>
gs_lev2.ps 50 1726360 422896 1418176 126076 true 741 3 <0>
BEGIN RESOURCES 50 1726360 425054 1418176 126076 true 741 4 <1>
END CATEGORY 50 1726360 427530 1418176 126364 true 742 5 <1>
END GENERIC 50 1746544 446012 1418176 126364 true 744 4 <1>
END FIXED 50 1746544 455999 1418176 126364 true 744 4 <1>
END MISC 50 1766728 467301 1418176 126364 true 744 4 <1>
END ENCODING 67 1766728 470499 1418176 126364 true 744 4 <1>
gs_resmp.ps 67 1807096 499696 1418176 126364 true 748 3 <1>
gs_resst.ps 67 1817032 513013 1418176 126364 true 748 3 <1>
gs_res.ps 67 1817032 510917 1418176 126364 true 748 3 <0>
gs_typ42.ps 67 1817032 511418 1418176 126364 true 751 3 <0>
gs_cidfn.ps 67 1837216 530305 1418176 126364 true 763 3 <0>
gs_cidcm.ps 67 1867336 554414 1418176 126364 true 763 3 <0>
gs_fntem.ps 100 1887520 584887 1418176 126572 true 765 3 <0>
gs_cidtt.ps 100 1907704 600159 1418176 126572 true 765 3 <0>
gs_cidfm.ps 100 1907704 602519 1418176 126572 true 765 3 <0>
gs_cmap.ps 100 1927888 622365 1418176 126572 true 769 3 <0>
gs_setpd.ps 100 1948072 639462 1418176 126572 true 769 3 <0>
gs_typ32.ps 100 1948072 641009 1418176 126572 true 767 3 <0>
gs_frsd.ps 100 1948072 642269 1418176 126572 true 767 3 <0>
gs_ll3.ps 117 1988440 678861 1418176 126572 true 768 3 <0>
gs_mex_e.ps 117 1988440 687331 1418176 126572 true 768 3 <0>
gs_mro_e.ps 117 1988440 688022 1418176 126572 true 768 3 <0>
gs_pdf_e.ps 117 1988440 688717 1418176 126572 true 768 3 <0>
gs_wan_e.ps 117 1988440 689389 1418176 126572 true 768 3 <0>
pdf_ops.ps 117 2008624 708129 1418176 126572 true 768 3 <0>
gs_l2img.ps 117 2008624 710707 1418176 126572 true 771 3 <0>
pdf_rbld.ps 117 2028808 717981 1418176 126572 true 784 3 <0>
pdf_base.ps 117 2069176 747352 1418176 126572 true 986 4 <0>
pdf_draw.ps 133 2109544 786566 1418176 126572 true 986 4 <0>
pdf_font.ps 150 2129728 820130 1418176 127292 true 987 4 <0>
pdf_main.ps 150 2149912 847955 1418176 127292 true 992 4 <0>
pdf_sec.ps 150 2178544 861843 1418176 127292 true 992 4 <0>
gs_css_e.ps 150 2178544 862774 1418176 127292 true 992 4 <0>
gs_cff.ps 150 2218912 896309 1418176 127292 true 994 4 <0>
gs_mgl_e.ps 150 2218912 897117 1418176 127292 true 994 4 <0>
gs_agl.ps 167 2305144 983906 1418176 127292 true 995 4 <0>
gs_ttf.ps 167 2435528 1109453 1418176 127292 true 1025 4 <0>
gs_icc.ps 167 2435528 1116386 1418176 127292 true 1026 4 <0>
gs_dps.ps 167 2435528 1118982 1418176 127292 true 1039 4 <0>
gs_dpnxt.ps 183 2435528 1120164 1418176 127292 true 1056 4 <0>
gs_epsf.ps 183 2455712 1129401 1418176 127292 true 1068 4 <0>
gs_fapi.ps 183 2455712 1131762 1418176 127292 true 1068 4 <0>
gs_pdfwr.ps 183 2496080 1169359 1418176 130922 true 1098 4 <0>
END INITFILES 183 2516264 1179574 1418176 130922 true 1125 4 <0>
Starting static resources for category Decoding
Static resource Unicode ignored with COMPILE_INITS=0.
Static resource StandardEncoding ignored with COMPILE_INITS=0.
Static resource Latin1 ignored with COMPILE_INITS=0.
Completting static resources for category Decoding
Starting static resources for category CMap
Static resource 90ms-RKSJ-H ignored with COMPILE_INITS=0.
Static resource 90ms-RKSJ-V ignored with COMPILE_INITS=0.
Static resource ETen-B5-H ignored with COMPILE_INITS=0.
Static resource ETen-B5-V ignored with COMPILE_INITS=0.
Static resource GBK-EUC-H ignored with COMPILE_INITS=0.
Static resource GBK-EUC-V ignored with COMPILE_INITS=0.
Static resource KSC-Johab-H ignored with COMPILE_INITS=0.
Static resource KSC-Johab-V ignored with COMPILE_INITS=0.
Static resource KSCms-UHC-H ignored with COMPILE_INITS=0.
Static resource KSCms-UHC-V ignored with COMPILE_INITS=0.
Static resource UniCNS-UCS2-H ignored with COMPILE_INITS=0.
Static resource UniCNS-UCS2-V ignored with COMPILE_INITS=0.
Static resource UniGB-UCS2-H ignored with COMPILE_INITS=0.
Static resource UniGB-UCS2-V ignored with COMPILE_INITS=0.
Static resource UniHojo-UCS2-H ignored with COMPILE_INITS=0.
Static resource UniJIS-UCS2-H ignored with COMPILE_INITS=0.
Static resource UniJIS-UCS2-V ignored with COMPILE_INITS=0.
Static resource UniKS-UCS2-H ignored with COMPILE_INITS=0.
Static resource UniKS-UCS2-V ignored with COMPILE_INITS=0.
Completting static resources for category CMap
Starting static resources for category ColorSpace
Static resource DefaultGray ignored with COMPILE_INITS=0.
Static resource DefaultRGB ignored with COMPILE_INITS=0.
Static resource DefaultCMYK ignored with COMPILE_INITS=0.
Completting static resources for category ColorSpace
gs_stres.ps 200 2637368 1293972 1418176 130922 true 1126 4 <0>
END STATIC RESOURCES 200 2637368 1293992 1418176 130922 true 1126 4 <0>
../Fontmap 200 2637368 1296981 1418176 132760 true 1127 4 <1>
/usr/local/share/ghostscript/8.51/lib/Fontmap 200 2637368 1299090
1418176 132760
true 1127 4 <1>
/usr/local/share/ghostscript/8.51/Resource/Fontmap 200 2718104 1360400
1418176 1
32760 true 1127 4 <1>
/usr/local/share/ghostscript/fonts/Fontmap 217 2738288 1365922 1418176
132760 tr
ue 1127 4 <1>
END FONTS 217 2738288 1368091 1418176 132760 true 1127 4 <0>
END DEVICE 283 3323624 1949706 1416984 131568 true 1127 4 <0>
END CONFIG 283 3323624 1949972 1416984 131568 true 1127 4 <0>
Checking.
-dict-
-dict-
-mark-
-dict-
true
Merging.
-dict-
-dict-
-mark-
-dict-
true
Selecting.
-dict-
-dict-
-dict-
-mark-
-dict-
true
Constructing.
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
true
Putting.
[612.0 792.0]
/.MediaSize
0
/%MediaSource
0
/%MediaDestination
true
/.LockSafetyParams
-mark-
true
-dict-
-device-
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
true
Result of putting.
false
-device-
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
true
Installing.
false
-device-
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
true
Finishing.
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
true
END INIT 283 3384176 2006788 1497720 199720 true 1137 4 <0>
END GLOBAL 283 3384176 2011332 1497720 200450 false 1136 4 <0>
END GC 333 3281808 1415732 1497720 200542 false 1123 3 <0>
runEPS: Not DSC
Checking.
-dict-
-dict-
-mark-
-dict-
Merging.
-dict-
-dict-
-mark-
-dict-
Selecting.
-dict-
-dict-
-dict-
-mark-
-dict-
Constructing.
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
Putting.
[612.0 792.0]
/.MediaSize
0
/%MediaSource
0
/%MediaDestination
-mark-
true
-dict-
-device-
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
Result of putting.
false
-device-
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
Installing.
false
-device-
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
Finishing.
-dict-
-dict-
-dict-
-dict-
-mark-
-dict-
Quote:

Filter 'f' terminated (sig=-1,err=0)


I would really appreciate any help in solving this problem. Thank you.

Alan

-----------------
Alan Simon, Associate Director
Health Sciences Libraries Consortium
3600 Market Street, Suite 550
Philadelphia, PA 19104
simon@hslc.org
215-222-1532
-----------------
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 9:50 am | All times are GMT
navigation Forum index » *nix » Tru64
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Help Needed. Removing a Folder Problem Kilicaslan Fatih python 4 Thu Jul 20, 2006 9:57 am
No new posts 2 Perl Software Engineers needed for great contract in NYC jessica.dwyer@scfoster.co Perl 2 Wed Jul 19, 2006 4:41 pm
No new posts Iptables and kernel 2.6.17 phelp needed Chavdar Videff Debian 8 Wed Jul 19, 2006 6:30 am
No new posts Suggestion needed on data storage format in text file manish PHP 11 Wed Jul 19, 2006 4:28 am
No new posts Windows Coder Needed need.a.codemaster@gmail.c C 10 Mon Jul 17, 2006 12:08 pm

Mobile Phone | Credit Cards | Free website & online homepage | Loan | Free SMS
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4725s ][ Queries: 16 (0.2729s) ][ GZIP on - Debug on ]