Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2000 14:31:37 GMT
From:      groggy@iname.com
To:        "freebsd-questions" <questions@freebsd.org>
Subject:   lpd mysteries
Message-ID:  <200012311431.OAA07657@groggy.anc.acsalaska.net>

next in thread | raw e-mail | index | archive | help
fbsd 3.5.1
intel pentium
nothing special

lpd is causing me endless grief :)  help!
i can print to lpt0 just fine directly as
any user.  everything appears to be just
fine and dandy.  other than the fact
the spooler aborts on me if i use
lp/lpd which call lpd.  the files
and links are created in the spool
directories - then lpd aborts as follows:
(excessive failsafe permissions were given)
-------------------------------------------

Script started on Sun Dec 31 04:55:49 2000

# whoami

root

# l /dev/lp*

8235 0 crwxrwxrwx  1 root  wheel  -  16, 128 /dev/lpctl0*
8234 0 crw-rw----  1 root  operator  -  16,   0 /dev/lpt0

# l /dev/pp*

8427 0 crw-rw----  1 root  operator  -  82,   0 /dev/ppi0

# l /usr/sbin/lp*

357151 24 -r-xr-s---  1 root  daemon  - 23968 /usr/sbin/lpc*
357225 48 -r-xr-x---  1 root  wheel  - 49072 /usr/sbin/lpd*
357283  4 -r-xr-x---  1 root  wheel  - 3224 /usr/sbin/lptcontrol*
357175  3 -r-xr-x---  1 root  wheel  - 3044 /usr/sbin/lptest*

# l /etc/cfg/lpf

336 0 lrwx------  1 root  wheel     -  10 /etc/cfg/lpf@ -> lpf-ljet2p
375 1 -rwxr-xr-x  1 root  operator  - 439 /etc/cfg/lpf-ljet2p*

# l /var/spool

7951 1 drwxrwxrwx   9 root  wheel   - 512 ./
   2 1 dr-xr-xr-x  18 root  wheel   - 512 ../
  17 1 drwxrwxr-x   2 66    dialer  - 512 lock/
7952 1 drwxrwxrwx   2 root  daemon  - 512 lpd/
  18 1 drwxr-xr-x   2 root  daemon  - 512 mqueue/
7953 1 drwx------   2 root  daemon  - 512 opielocks/
  19 1 drwxr-xr-x   2 root  daemon  - 512 output/
  20 1 drwxrwxr-x   7 66    66      - 512 uucp/
  23 1 drwxrwxrwx   2 66    66      - 512 uucppublic/

# l /var/spool/lpd

7952 1 drwxrwxrwx  2 root  daemon  - 512 ./
7951 1 drwxrwxrwx  9 root  wheel   - 512 ../
7992 1 -rw-------  1 root  daemon  -   4 .seq
8003 1 -rw-rw-r--  1 root  daemon  -  42 lock
8022 1 -rw-rw-r--  1 root  daemon  -  25 status

# cat /etc/printcap

lp:sh:if=/etc/cfg/lpf:lp=/dev/lpt0:sd=/var/spool/lpd:lf=/var/log/lpr.log

# l /home/abc/todo

753937 4 -rw-------  1 abc  abc  - 3258 /home/abc/todo

# lp /home/abc/todo
# tail /var/log/lpr.log

Dec 31 04:39:57 en26 lpd[27868]: hostname requests printjob lp
Abort trap
Abort trap
Abort trap
Dec 31 04:39:59 en26 lpd[27868]: lp: job could not be printed (cfA032hostname)
Dec 31 04:58:06 en26 lpd[28692]: hostname requests printjob lp
Abort trap
Abort trap
Abort trap
Dec 31 04:58:07 en26 lpd[28692]: lp: job could not be printed (cfA033hostname)

# o /var/spool/lpd/

==> /var/spool/lpd/lock <==

28692
cfA033en26.groggy.anc.acsalaska.net

==> /var/spool/lpd/status <==

lp is ready and printing
 
Script done on Sun Dec 31 04:58:24 2000

???????????????????????????????????????


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012311431.OAA07657>