[1473] in Release_7.7_team

home help back first fref pref prev next nref lref last post

Re: /usr/bin/lp?

daemon@ATHENA.MIT.EDU (Abby Fox)
Fri Aug 28 14:49:48 1998

To: Mike Barker <mbarker@MIT.EDU>
Cc: release-team@MIT.EDU
In-Reply-To: Message from Mike Barker <mbarker@MIT.EDU> 
             received Wed, 26 Aug 1998 17:12:41 -0400
Date: Fri, 28 Aug 1998 14:49:42 EDT
From: Abby Fox <ajfox@MIT.EDU>

>Unfortunately, I didn't write down any notes, so I'm not exactly sure
>what the problem was or who was going to resolve it. 

The problem is with apps. that hard-code /usr/bin/lp into binaries.
The most recent culprits Alex reports are the jdk appletviewer and now
Sun's Java Workshop.  Here's some more info. from him:

------------------------------------------

To see problem: do add workshop; jws, followed by Help -> Help Contents,
followed by File -> Print (then select Printer, and leave lp in printer
form). Nothing prints. Running jws under truss shows the following system
calls:

stat("/usr/bin/lp", 0xEDE1F1B8)                       = 0
stat("/usr/bin/lp", 0xEDE1E0B8)                       = 0

(and nothing else with *lp*).

replacing the /usr/bin/lp link on the local machine with a link to
/usr/athena/bin/lp does not work. Replacing it with a link to
/usr/athena/bin/lpr does not work (as well as typing "lpr" in the
printer form with the original link). By "not work" I mean nothing
prints, but no error messages.

Doing a binary edit on the file containing the string "/usr/bin/lp", 
replacing it by "/var/tmp/lp", with the latter being a script which echoes
its command-line arguments, does not work (an error dialog about "cannot
print" appears). (there is only one such file, a Java .class file).

As far as other apps- I don't recall exactly but generally Sun software
that has Print buttons doesn't work; Adobe ones often don't- definitely
Photoshop. I believe the SGI online book viewer also doesn't print (this
may be a feature :-)

                                         A.
------------------------------------------

home help back first fref pref prev next nref lref last post