On Tue, Oct 15, 2002 at 09:08:02AM -0400, Viktor Hornak wrote: > Thanks for the tips and sorry for the delay in response (couldn't get to > reply sooner). > I tried 'lpr -Phost%9100' but it didn't work for me. Nor did the 'wild' > fix editing 'libgfxps.so' binary directly. Yet I sleep better (thanks to > you guys :-) because I know where the problem is now. I guess, I'll just > wait for next release of mozilla hoping that PS2 printing to laserjets > gets fixed.
Incidentally, in the mean time, here is a replacement for /usr/share/printconf/util/jetdirectprint which ought to work around the problem. Tim. */
#!/bin/bash
# Direct-to-printer (old HP Jetdirect style printers) filter
# to integrate with printconf.
# Bash implementation Copyright (C) 2002 Tim Waugh <[EMAIL PROTECTED]>
. script.cfg
# if the port isn't set, use the default of 9100
: ${port:=9100}
# Maximum number of times to retry connection
max_retries=60 # at one second each, one minute.
retry_count=0
while [ $retry_count -lt $max_retries ]
do
(cat >&3; while read <&3 -sn1 -t1; do :; done) \
3<>/dev/tcp/$printer_ip/$port && break
retry_count=$(($retry_count + 1))
sleep 1
done
msg02882/pgp00000.pgp
Description: PGP signature
