🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.protocols.appletalk
1 messages
1 total messages Started by Aleks Sat, 23 Jan 1993 18:45
Problems hiding Personal LW NTR
#4048
Author: Aleks
Date: Sat, 23 Jan 1993 18:45
68 lines
3292 bytes
I'm having trouble hiding a Personal LaserWriter NTR.  When it's hidden via
Novell's Appletalk Printing Services, all is dandy - its NBP type is changed
from LaserWriter to LaserShared.  However, when I try doing this via lwpr in
CAP using what I *think* is the same PostScript used by NetWare (as I found it
among the Netware ATPS stuff), the type does not get changed; instead, the
word LaserShared gets appended to the original name ('Personal LaserWriter
NTR' becomes 'Personal LaserWriter NTRLaserShared' after i dump the PostScript
to the LW and the LW continues advertising itself as NBP type LaserWriter).

I should mention that the same PostScript works just fine on a LaserWriter
Plus and LaserWriter NT.  SInce our LaserWriters are hidden via NetWare, I use
cron jobs that check periodically if they are indeed still hidden and dunp
this PostScript to them if they are found not to be (becasue they've been
powered-cycled, for example).

This is the PostScript file I dump with lwpr:
----------------------------------------------------------------------
%!PS-Adobe-
%
%  HIDE.PS						11/27/91
%
%	change the LaserWriter's persistent NBP type to "LaserShared"
%	depends on *undocumented* feature of Apple LaserWriters
%	Novell is NOT responsible for results if used on other printers
%	reverse by using ATPSSHOW command
%
%	If used on LaserWriter compatible and it fails, reverse results
%	with the printer NAMER.
%
serverdict begin 0 exitserver
/name 64 string def
statusdict begin
	name printername (:LaserShared)
	dup type 2 index type 2 copy ne {
		pop pop
		errordict begin (concatenate) typecheck end
	}{
		/stringtype ne exch /arraytype ne and {
			errordict begin (concatenate) typecheck end
		} if
	} ifelse
	dup length 2 index length add 1 index type
	/arraytype eq{array}{string}ifelse
	dup 0 4 index putinterval
	dup 4 -1 roll length 4 -1 roll putinterval
	setprintername
end
%%EOF
----------------------------------------------------------------------

Anyone have any ideas on how to get around NTR's misbehavior?

Thanks for any help!

--
                                           Aleks I. Margan
     __     _       ____/   /   /    ____/ Macintosh/Network Specialist
    /   /  /       /       /  _/    /      Yale University Academic Computing
   ___ /  /       ___/    __      ___  /   175 Whitney Ave.,New Haven,CT 06520
  /   /  /       /       /   \        /    tel 203-432-9545, fax 203-432-6165
_/  _/  _____/  ____/  _/   _|  _____/     margan@yale.edu
--

     __     _       ____/   /   /    ____/
    /   /  /       /       /  _/    /             Aleks I. Margan
   ___ /  /       ___/    __      ___  /
  /   /  /       /       /   \        /           margan@yale.edu
_/  _/  _____/  ____/  _/   _|  _____/
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads