Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!ncar!midway!msuinfo!convex.cl.msu.edu!tdd From: tdd@convex.cl.msu.edu (Thomas D. Davis) Newsgroups: comp.lang.postscript Subject: Re: Help zapping a printer Message-ID: <1990Aug27.134308.18775@msuinfo.cl.msu.edu> Date: 27 Aug 90 13:43:08 GMT References: <9448@scorn.sco.COM> <1505@chinacat.Unicom.COM> <1854@fcs280s.ncifcrf.gov> Sender: news@msuinfo.cl.msu.edu Organization: Michigan State University, East Lansing Lines: 19 In article <1854@fcs280s.ncifcrf.gov> toms@fcs260c2.ncifcrf.gov (Tom Schneider) writes: > >It seems that I may not be getting the control-D's across; anybody know >how to do this in UNIX (sending a file with a control-D in it didn't work). >It also seems that the reboot program given above simply never gets >executed when the printer is fowled up. > Your post last week showed you trying to do something like: echo "\004" | lpr. This doesn't do what you want. To echo a CTRL-D, you need to precede the CTRL-D with a CTRL-V (this tells csh that the next character is to be taken literally). Also, remember to use the -l parameter on the lpr call so your print filter passes the control character through to the printer (actually, you can just as easily do "echo ^D > /dev/ttya" and skip lpr/lpd altogether). This should always "unzap" your printer. -- Tom Davis | The above statement shall be construed, Network Software Services | interpreted, and governed by me alone. Michigan State University | EMail: tdd@convex.cl.msu.edu