From: Timothy L. <ti...@wo...> - 2000-12-19 07:58:48
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> David Paschal wrote: <blockquote TYPE=CITE> <pre>I committed ptal-printd to CVS and rewrote large portions of PRINT-HOWTO. The command-line syntax of ptal-printd has changed, and I think I've fixed the security issues to my liking now. Please try it out and let me know ASAP if there are any remaining problems.</pre> </blockquote> <p><br>Hiya, all. <p>I'm using hpoj with RedHat 6.2. Instead of activating ptal-printd from rc.local, I thought it'd be easier to have a separate init script for it. So I've written up the following script to load ptal-printd as a daemon: <blockquote><tt>#!/bin/sh</tt> <br><tt>#</tt> <br><tt># ptal-printd Startup script for the PTAL-print daemon</tt> <br><tt>#</tt> <br><tt># chkconfig: 345 60 60</tt> <br><tt># description: PTAL permits printing on HP OfficeJet printer connected \</tt> <br><tt># to a local parallel port, or remotely to an HP JetDirect \</tt> <br><tt># network print server.</tt> <br><tt># processname: ptal-printd</tt> <br><tt># config: /etc/ptal-printd.conf</tt> <p><tt># Source function library.</tt> <br><tt>. /etc/rc.d/init.d/functions</tt> <p><tt>RETVAL=0</tt> <p><tt># See how we were called</tt> <br><tt>case "$1" in</tt> <br><tt> start)</tt> <br><tt> # Start daemon</tt> <br><tt> if [ ! -f /var/lock/subsys/ptal-printd ]; then</tt> <br><tt> echo -n "Starting ptal-printd: "</tt> <br><tt> eval `sed -n 's@^\([^#].*\)@\(ptal-printd \1 \&\);@p' /etc/ptal-printd.conf`</tt> <br><tt> touch /var/lock/subsys/ptal-printd</tt> <br><tt> success "ptal-printd startup"</tt> <br><tt> echo</tt> <br><tt> fi</tt> <br><tt> ;;</tt> <br><tt> stop)</tt> <br><tt> # Stop daemon</tt> <br><tt> echo -n "Shutting down ptal-printd: "</tt> <br><tt> killproc ptal-printd</tt> <br><tt> RETVAL=$?</tt> <br><tt> [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ptal-printd</tt> <br><tt> echo</tt> <br><tt> ;;</tt> <br><tt> status)</tt> <br><tt> status ptal-printd</tt> <br><tt> RETVAL=$?</tt> <br><tt> ;;</tt> <br><tt> restart|reload)</tt> <br><tt> $0 stop</tt> <br><tt> $0 start</tt> <br><tt> RETVAL=$?</tt> <br><tt> ;;</tt> <br><tt> *)</tt> <br><tt> echo "Usage: $0 {start|stop|restart|reload|status}"</tt> <br><tt> exit 1</tt> <br><tt>esac</tt> <p><tt>exit $RETVAL</tt></blockquote> The script <p>hpo...@li... wrote: <blockquote TYPE=CITE>Send hpoj-devel mailing list submissions to <br> hpo...@li...urceforge. <br>To subscribe or unsubscribe via the World Wide Web, visit <br> <a href="http://lists.sourceforge.net/mailman/listinfo/hpoj-devel">http://lists.sourceforge.net/mailman/listinfo/hpoj-devel</a> <br>or, via email, send a message with subject or body 'help' to <br> hpo...@li... <p>You can reach the person managing the list at <br> hpo...@li... <p>When replying, please edit your Subject line so it is more specific <br>than "Re: Contents of hpoj-devel digest..." <p> ------------------------------------------------------------------------ <br>Today's Topics: <p> 1. Re: ptal-printd, and preparing for 0.7 (David Paschal) <br> 2. 2.2.18 + hpoj0.6 + patch + SMP (Dag Nygren) <p> ------------------------------------------------------------------------ <p>Subject: Re: [hpoj-devel] ptal-printd, and preparing for 0.7 <br>Date: Mon, 18 Dec 2000 04:52:23 -0800 <br>From: pa...@rc... (David Paschal) <br>Reply-To: hpo...@li... <br>To: hpo...@li... <br>CC: pa...@rc... <p>Joe Piolunek wrote: <br>> You mentioned in the README that some security issues need to be <br>> addressed. If you can make it secure enough, then by all means add it <br>> to the next release. <p>Hi, Joe. I decided to go ahead and add ptal-printd, because in my experience <br>printing with hpoj has been a support nightmare without it. :-) <p>I committed ptal-printd to CVS and rewrote large portions of PRINT-HOWTO. <br>The command-line syntax of ptal-printd has changed, and I think I've fixed <br>the security issues to my liking now. Please try it out and let me know <br>ASAP if there are any remaining problems. <p>On a different matter, I did manage to reproduce the xojpanel "no-start" <br>problem, with 64 failures in 500 tries, but I haven't yet gotten down to <br>root cause. I'll put that down as a TODO for 0.8. :-) <p>David <p> ------------------------------------------------------------------------ <p>Subject: [hpoj-devel] 2.2.18 + hpoj0.6 + patch + SMP <br>Date: Mon, 18 Dec 2000 19:54:38 +0200 <br>From: Dag Nygren <da...@ne...> <br>Reply-To: hpo...@li... <br>To: hpo...@li... <p>Hi, <p>just installed 2.2.18 here on my SMP machine. <p>Added hpoj 0.6 + the patch recommended for SMP <br>on the HpOj web-page. <p>Some feedback: <p>1. Scanning is awfully slow <br>2. Printing worked until I used the ieee12844_print when the <br> driver froze . It didn't crash the system as when I tested the <br> hpoj package (version 0.3) last time though. . :-) <br>3. The scanned colors seem to be very far from the "real" colors <br> especially green, which is more dark blue than green. <p>BRGDS and thanks for patching up HP:s disability to make a Linux driver <p>-- <br>Dag Nygren email: da...@ne... <br>Oy NewTech Ab phone: +358 9 8024910 <br>Trasktorpet 3 fax: +358 9 8024916 <br>02360 ESBO GSM: 0400-426312 <br>FINLAND <p> ------------------------------------------------------------------------ <br>_______________________________________________ <br>hpoj-devel mailing list <br>hpo...@li... <br><a href="http://lists.sourceforge.net/mailman/listinfo/hpoj-devel">http://lists.sourceforge.net/mailman/listinfo/hpoj-devel</a></blockquote> </html> |