home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / protocol / appletal / 4510 < prev    next >
Encoding:
Text File  |  1993-01-24  |  3.1 KB  |  80 lines

  1. Newsgroups: comp.protocols.appletalk
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!yale.edu!news.yale.edu!suncis.ycc.yale.edu!margan
  3. From: margan@suncis.cis.yale.edu (Aleks)
  4. Subject: Problems hiding Personal LW NTR
  5. Message-ID: <MARGAN.93Jan23184519@suncis.suncis.cis.yale.edu>
  6. Sender: news@news.yale.edu (USENET News System)
  7. Nntp-Posting-Host: suncis.ycc.yale.edu
  8. Organization: Not yet implemented
  9. Date: 23 Jan 93 18:45:19
  10. Lines: 68
  11.  
  12. I'm having trouble hiding a Personal LaserWriter NTR.  When it's hidden via
  13. Novell's Appletalk Printing Services, all is dandy - its NBP type is changed
  14. from LaserWriter to LaserShared.  However, when I try doing this via lwpr in
  15. CAP using what I *think* is the same PostScript used by NetWare (as I found it
  16. among the Netware ATPS stuff), the type does not get changed; instead, the
  17. word LaserShared gets appended to the original name ('Personal LaserWriter
  18. NTR' becomes 'Personal LaserWriter NTRLaserShared' after i dump the PostScript
  19. to the LW and the LW continues advertising itself as NBP type LaserWriter).
  20.  
  21. I should mention that the same PostScript works just fine on a LaserWriter
  22. Plus and LaserWriter NT.  SInce our LaserWriters are hidden via NetWare, I use
  23. cron jobs that check periodically if they are indeed still hidden and dunp
  24. this PostScript to them if they are found not to be (becasue they've been
  25. powered-cycled, for example).
  26.  
  27. This is the PostScript file I dump with lwpr:
  28. ----------------------------------------------------------------------
  29. %!PS-Adobe-
  30. %
  31. %  HIDE.PS                        11/27/91
  32. %
  33. %    change the LaserWriter's persistent NBP type to "LaserShared"
  34. %    depends on *undocumented* feature of Apple LaserWriters
  35. %    Novell is NOT responsible for results if used on other printers
  36. %    reverse by using ATPSSHOW command
  37. %
  38. %    If used on LaserWriter compatible and it fails, reverse results
  39. %    with the printer NAMER.
  40. %
  41. serverdict begin 0 exitserver
  42. /name 64 string def
  43. statusdict begin
  44.     name printername (:LaserShared)
  45.     dup type 2 index type 2 copy ne {
  46.         pop pop
  47.         errordict begin (concatenate) typecheck end
  48.     }{
  49.         /stringtype ne exch /arraytype ne and {
  50.             errordict begin (concatenate) typecheck end
  51.         } if
  52.     } ifelse
  53.     dup length 2 index length add 1 index type
  54.     /arraytype eq{array}{string}ifelse
  55.     dup 0 4 index putinterval
  56.     dup 4 -1 roll length 4 -1 roll putinterval
  57.     setprintername
  58. end
  59. %%EOF
  60. ----------------------------------------------------------------------
  61.  
  62. Anyone have any ideas on how to get around NTR's misbehavior?
  63.  
  64. Thanks for any help!
  65.  
  66. --
  67.                                            Aleks I. Margan
  68.      __     _       ____/   /   /    ____/ Macintosh/Network Specialist
  69.     /   /  /       /       /  _/    /      Yale University Academic Computing
  70.    ___ /  /       ___/    __      ___  /   175 Whitney Ave.,New Haven,CT 06520
  71.   /   /  /       /       /   \        /    tel 203-432-9545, fax 203-432-6165
  72. _/  _/  _____/  ____/  _/   _|  _____/     margan@yale.edu
  73. --
  74.  
  75.      __     _       ____/   /   /    ____/
  76.     /   /  /       /       /  _/    /             Aleks I. Margan
  77.    ___ /  /       ___/    __      ___  /
  78.   /   /  /       /       /   \        /           margan@yale.edu
  79. _/  _/  _____/  ____/  _/   _|  _____/
  80.