🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11077

lpd problems on Sun UNIX 4.2 Release 3.5

#11077
From: atul k chhabra
Date: Wed, 22 Feb 1989 13:19
42 lines
2182 bytes
We were running a filter for an Imagen laser printer connected to a Sun
3/160 running Sun Unix Release 3.0. On upgrading to Sun Release 3.5, the
filter stopped working. The first line of the filter is:

#!/bin/csh -f

When lpd invokes /bin/csh, it repeatedly logs the following error message
in the log-file:

csh: Permission denied
/usr/lib/lpd: imagen: restarting

As stated above, the filter used to work fine on Sun Release 3.0. You may 
try to recreate the situation on Sun Release 3.5 as follows:

	1. Add the following entry in /etc/printcap
		dumb|test printer:\
			:lp=/tmp/junk:\
			:lf=/tmp/log:\
			:sd=/tmp:\
			:vf=/tmp/dummyfilter:
	2. Create the file /tmp/dummyfilter with just the following line
		#!/bin/csh -f
	3. chmod 755 /tmp/dummyfilter
	4. cat /dev/null > /tmp/log ; chmod 666 /tmp/log
	5. cat /dev/null > /tmp/junk ; chmod 666 /tmp/junk
	6. Execute the  command "lpr -Pdumb -v ANYFILE".

You will notice that the message "csh: Permission denied" is logged into
the file /tmp/log. This seems to be a problem specific to Sun Release 3.5.
The above stuff works without any error messages on VAX Ultrix 2.3. 

We cannot rewrite the Imagen filters using "sh" instead of "csh".
QMS-Imagen could not help. Sun software assistance for Unix is running a
backlog of three days!!! I would appreciate if anyone on the net could
shed some light on the lpd problem.

Atul Chhabra, Dept. of Electrical & Computer Engineering, ML 030,
University of Cincinnati, Cincinnati, OH 45221-0030.

voice: (513)556-4766                internet:    achhabra@ucesp1.ece.uc.edu
                                              OR achhabra@uceng.uc.edu
Technical Details
Message-ID: <697@uceng.UC.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: achhabra@uceng.uc.edu (atul k chhabra)
Newsgroups: comp.sys.sun
Subject: lpd problems on Sun UNIX 4.2 Release 3.5
Message-ID: <697@uceng.UC.EDU>
Date: 22 Feb 89 13:19:30 GMT
Sender: usenet@rice.edu
Organization: Univ. of Cincinnati, College of Engg.
Lines: 42
Approved: Sun-Spots@rice.edu
Original-Date: 14 Feb 89 23:12:34 GMT
X-Sun-Spots-Digest: Volume 7, Issue 165, message 1 of 15