Path: news1.icaen!news.uiowa.edu!news1.chicago.iagnet.net!qual.net!iagnet.net!chippy.visi.com!news-out.visi.com!ptah.visi.com!not-for-mail Newsgroups: comp.sys.apple2.gno From: Dragon King Subject: Re: lpr and deskjet printer In-Reply-To: <34E05FD1.365F@unisys.com> Message-ID: References: <34D7405C.5D50@unisys.com> <6bda9b$kdd$1@scapa.cs.ualberta.ca> <34E05FD1.365F@unisys.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Lines: 35 Date: Wed, 11 Feb 1998 11:53:47 GMT NNTP-Posting-Host: thumper.visi.com NNTP-Posting-Date: Wed, 11 Feb 1998 05:53:47 CST Xref: news1.icaen comp.sys.apple2.gno:6553 > > pi:b:once:i:/usr/sbin/runover .ttyb /bin/stty 57600 This would be the correct line to use.. Explanation below. > I changed my inittab file to: > pi:123478:rest:i:/usr/sbin/runover .ttyb /bin/stty 57600 I would really suggest you use the line I stated previously.. The reason I say this comes from looking at the third field.. It should only be "once". By putting "rest" there as you did will cause the process to be restarted when it exits. This is not needed and only creates unnecessary load on the system. > This allows the deskjet printer to work and increases the overall > response time with entering other commands even when nothing is going > to the printer. What is the difference between using runover and using > getty in the inittab file? runover is used when you need to run an arbitrary process on a terminal. For example if you wanted to use xlogin(8) you would need to use runover to get it to work on .ttyco.. getty is _only_ used to allow logins to the computer from the specified terminal. -- \ | _ _|_ _| | Jeff Markham (Dragon King) _ \ _ \ _ \ | -_) | | _` |(_-< | markhj01@visi.com _/ _\ .__/ .__/_|\___| ___|___|\__, |___/ | http://www.visi.com/~markhj01 _| _| ____/ _| ftp.visi.com:/users/markhj01 Path: news1.icaen!news.uiowa.edu!news1.chicago.iagnet.net!qual.net!iagnet.net!newsfeed.internetmci.com!192.61.103.81!eanews1!plnews.pl.unisys.com!not-for-mail From: MA Newsgroups: comp.sys.apple2.gno Subject: Re: lpr and deskjet printer Date: Wed, 11 Feb 1998 06:54:17 -0700 Organization: Unisys Corporation Lines: 36 Message-ID: <34E1AD88.4F4C@unisys.com> References: <34D7405C.5D50@unisys.com> <6bda9b$kdd$1@scapa.cs.ualberta.ca> <34E05FD1.365F@unisys.com> NNTP-Posting-Host: 192.60.237.61 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Win95; I) Xref: news1.icaen comp.sys.apple2.gno:6554 Dragon King wrote: > > > > pi:b:once:i:/usr/sbin/runover .ttyb /bin/stty 57600 > > This would be the correct line to use.. Explanation below. > Okay, what does setting the second parameter, "b" do for me that is better than using the init levels? > > I changed my inittab file to: > > > pi:123478:rest:i:/usr/sbin/runover .ttyb /bin/stty 57600 > > I would really suggest you use the line I stated previously.. The reason I > say this comes from looking at the third field.. It should only be "once". > By putting "rest" there as you did will cause the process to be restarted > when it exits. This is not needed and only creates unnecessary load on the > system. > > > This allows the deskjet printer to work and increases the overall > > response time with entering other commands even when nothing is going > > to the printer. What is the difference between using runover and using > > getty in the inittab file? > > runover is used when you need to run an arbitrary process on a > terminal. For example if you wanted to use xlogin(8) you would need to > use runover to get it to work on .ttyco.. > > getty is _only_ used to allow logins to the computer from the specified > terminal. > > -- > \ | _ _|_ _| | Jeff Markham (Dragon King) > _ \ _ \ _ \ | -_) | | _` |(_-< | markhj01@visi.com > _/ _\ .__/ .__/_|\___| ___|___|\__, |___/ | http://www.visi.com/~markhj01 > _| _| ____/ _| ftp.visi.com:/users/markhj01 Path: news1.icaen!news.uiowa.edu!news.physics.uiowa.edu!math.ohio-state.edu!news.cis.ohio-state.edu!news.maxwell.syr.edu!newsfeed.internetmci.com!192.61.103.81!eanews1!plnews.pl.unisys.com!not-for-mail From: MA Newsgroups: comp.sys.apple2.gno Subject: Re: lpr and deskjet printer Date: Tue, 10 Feb 1998 07:10:25 -0700 Organization: Unisys Corporation Lines: 47 Message-ID: <34E05FD1.365F@unisys.com> References: <34D7405C.5D50@unisys.com> <6bda9b$kdd$1@scapa.cs.ualberta.ca> NNTP-Posting-Host: 192.60.237.61 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (Win95; I) Xref: news1.icaen comp.sys.apple2.gno:6555 Dragon King wrote: > > On 5 Feb 1998, Devin Reade wrote: > > > In article <34D7405C.5D50@unisys.com>, MA wrote: > > >Does the lpr/lpd printer interface support deskjet printers with a > > >56K baud serial interface? I have not been able to get this combination > > >to work. > > > > I'm afraid that I can't tell you much; I don't have a serial deskjet > > so I can't debug your setup, either. You can see if Jeff Markham > > is still supporting lpr/lpd/lpc. Otherwise the source code is > > I'll support it as much as I can. I don't have a deskjet of any sort to > test with. I did think of something to try since you mentioned it uses 56K > baud. Is the baud for .ttyb set right? the only easy way I can think of to > check would be to use a test program. I believe it was tc3.c from the > termcap library archive. I couldn't locate it on the ftp.gno.org archive > so I'm not sure where to get it off hand. > > For now you could issue the command "stty 57600 < .ttyb" and then try it. > If that fixes it I'd suggest adding a line like the following to > /etc/inittab > pi:b:once:i:/usr/sbin/runover .ttyb /bin/stty 57600 > > Let us know how that works. This might be something that should be put in > the faq. > > -- > \ | _ _|_ _| | Jeff Markham (Dragon King) > _ \ _ \ _ \ | -_) | | _` |(_-< | markhj01@visi.com > _/ _\ .__/ .__/_|\___| ___|___|\__, |___/ | http://www.visi.com/~markhj01 > _| _| ____/ _| ftp.visi.com:/users/markhj01 Setting the .ttyb to 57600 corrected the problem and the lpr/lpd looks good with the deskjet print even though there is a small bug in lpd. I changed my inittab file to: pi:123478:rest:i:/usr/sbin/runover .ttyb /bin/stty 57600 This allows the deskjet printer to work and increases the overall response time with entering other commands even when nothing is going to the printer. What is the difference between using runover and using getty in the inittab file? Marlin Path: news1.icaen!news.uiowa.edu!news1.chicago.iagnet.net!qual.net!iagnet.net!chippy.visi.com!news-out.visi.com!ptah.visi.com!not-for-mail Newsgroups: comp.sys.apple2.gno From: Dragon King Subject: Re: lpr and deskjet printer In-Reply-To: <34E1AD88.4F4C@unisys.com> Message-ID: References: <34D7405C.5D50@unisys.com> <6bda9b$kdd$1@scapa.cs.ualberta.ca> <34E05FD1.365F@unisys.com> <34E1AD88.4F4C@unisys.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Lines: 13 Date: Thu, 12 Feb 1998 09:41:50 GMT NNTP-Posting-Host: thumper.visi.com NNTP-Posting-Date: Thu, 12 Feb 1998 03:41:50 CST Xref: news1.icaen comp.sys.apple2.gno:6556 > Okay, what does setting the second parameter, "b" do for me that is > better than using the init levels? "b" is the boot level.. It's covered in the inittab(5) manpage.. -- \ | _ _|_ _| | Jeff Markham (Dragon King) _ \ _ \ _ \ | -_) | | _` |(_-< | markhj01@visi.com _/ _\ .__/ .__/_|\___| ___|___|\__, |___/ | http://www.visi.com/~markhj01 _| _| ____/ _| ftp.visi.com:/users/markhj01