Path: utzoo!utgpu!attcan!uunet!mcvax!ukc!eagle!icdoc!qmc-cs!liam From: liam@cs.qmc.ac.uk (William Roberts) Newsgroups: comp.lang.postscript Subject: Re: resetting a printer through postscript Summary: DONT! Keywords: reset.ps? Message-ID: <569@sequent.cs.qmc.ac.uk> Date: 8 Aug 88 19:49:31 GMT References: <270@thor.wright.EDU> <1053@granjon.UUCP> Reply-To: liam@cs.qmc.ac.uk (William Roberts) Organization: Computer Science Dept, Queen Mary College, University of London, UK. Lines: 24 Expires: Sender: Followup-To: Distribution: In article <1053@granjon.UUCP> ggr@granjon.UUCP (Guy Riddle) writes: >The following reboots LaserWriters and probably most other PostScript printers: > > %! > serverdict begin > 0 % or whatever your password is > exitserver > systemdict begin > quit Please don't do this - it makes life exceptionally difficult for any spooler environment if the application arrogantly resets the printer. Resetting my Linotronic because it isn't a LaserWriter isn't going to help anyone.... If you want to see lots of bad examples like this, look in a newish Apple LaserPrep file. There are suitable comments to put round such code (if you use version 2 of the structuring convention) but most people don't. -- William Roberts ARPA: liam@cs.qmc.ac.uk (gw: cs.ucl.edu) Queen Mary College UUCP: liam@qmc-cs.UUCP LONDON, UK Tel: 01-975 5250