Kurc, Marcin A. wrote:
why do you run lpd from a command line? lpd is already running, use 'lpr' to
print
do this
cp /var/tmp/printcap /etc/printcap
/etc/init.d/lprng stop
/etc/init.d/lprng start
lpr /etc/group
-----Original Message-----
From: eric [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 30, 2002 12:15 PM
To: Kurc, Marcin A.; debian-user
Subject: Re: printcap problem
Kurc, Marcin A. wrote:
Sorry, my mistake.
Magicfilterconf generates printcap file in /var/tmp
Printer name Short name Spool dir Device Input filter
---------------------------------------------------------------------------
-
---
HP Laserjet 4 hplj4l /var/spool/lpd/hplj4 /dev/lp1 ljet4l
*
Is this ok? (y/n) [y]: y
Paper size is Letter, page length is 66 lines.
Stopping printer spooler: lprng.
/var/tmp/printcap generated.
Dear Debian users:
on my /var/tmp/printcap is
Copyright (c) 1983 Regents of the University of California.
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that this notice is preserved and that due credit is given
# to the University of California at Berkeley. The name of the University
# may not be used to endorse or promote products derived from this
# software without specific prior written permission. This software
# is provided ``as is'' without express or implied warranty.
#
# @(#)etc.printcap 5.2 (Berkeley) 5/5/88
#
# This file was generated by /usr/sbin/magicfilterconfig.
#
lp|hplj4l|HP Laserjet 4L:\
:lp=/dev/lp1:sd=/var/spool/lpd/hplj4l:\
:sh:pw#80:pl#66:px#1440:mx#0:\
:if=/etc/magicfilter/ljet4l-filter:\
:af=/var/log/lp-acct:lf=/var/log/lp-errs:
but it still not print, if I run lpd, I got:
progeny:/home/fsshl# lpd
Fatal error - Another print spooler is using TCP printer port, possibly
lpd process '3125'
hope to see more suggestions, highly appreciate, eric
I tried what you suggest, but it still not print, so I use lpq to see
whats wrong by following:
progeny:/home/fsshl# lpr xfree
progeny:/home/fsshl# lpq
Printer: [EMAIL PROTECTED] 'HP Laserjet 4L'
Queue: 1 printable job
Server: pid 3378 active
Unspooler: pid 3385 active
Status: cannot open '/dev/lp1' - 'No such device or address', attempt 3,
sleeping 40 at 12:38:24.937
Rank Owner/ID Class Job Files Size Time
active(attempt-2) root A 377 xfree 4068 12:36:34
progeny:/home/fsshl#
hope to see more tech hints, thanks in advance, eric