Re: problems printing from mozilla

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <twaugh@redhat.com>

. 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

Attachment: pgp00177.pgp
Description: PGP signature


[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux