On Tuesday 17 July 2007, Fred Crowson wrote:
> rp|c500|laser|lexmark:\
>          :lp=:\
>          :rm=c500.crowsons.net:\
>          :rp=ps:\
>          :sd=/var/spool/C500:\
>          :lf=/var/log/lpd-errs:
> x41:fred ~> lpr -Plaser which.ps
> x41:fred ~> tail -2 /var/log/lpd-errs
> Jul 17 18:14:36 x41 lpd[18903]: x41.crowsons.net requests printjob
> laser Jul 17 18:14:39 x41 lpd[18903]: laser: lost connection
> x41:fred ~>

I'm guessing you've already made sure that "c500.crowsons.net" actually
resolves to an IP address *inside* your network and you can ping it.

I'm also guessing you've made sure your "which.ps" file is good. You may
have fumble-fingered the command to create the ps file of the man page.
If you're not sure, just download something that is known-good.
Such as:
http://www.usenix.org/publications/library/proceedings/usenix98/freenix/deraa
dt.ps

Check the permissions and ownership of /var/spool/C500 (in my case it's
the default /var/spool/output).

$ ls -laF /var/spool
total 36
drwxr-xr-x   9 root   wheel   512 Mar 10 17:31 ./
drwxr-xr-x  26 root   wheel   512 Jun 29 00:52 ../
drwxrwx---   2 smmsp  smmsp   512 Jul 17 01:31 clientmqueue/
dr-xr-xr-x   5 root   wheel   512 Mar 10 17:31 ftp/
drwxrwxr-t   2 uucp   dialer  512 Mar 10 17:31 lock/
drwx------   2 root   wheel   512 Jul 17 01:44 mqueue/
drwxrwxr-x   2 root   daemon  512 Jul 17 18:38 output/
drwxr-xr-x   2 uucp   daemon  512 Mar 10 17:31 uucp/
drwxrwxr-t   2 uucp   daemon  512 Mar 10 17:31 uucppublic/

$ ls -laF /var/spool/output/
total 20
drwxrwxr-x  2 root    daemon  512 Jul 17 18:38 ./
drwxr-xr-x  9 root    wheel   512 Mar 10 17:31 ../
-rw-rw---x  1 daemon  daemon    4 Jul 17 18:38 .seq*
-rw-r-----  1 daemon  daemon   26 Jul 17 18:38 lock
-rw-rw----  1 daemon  daemon   17 Jul 17 18:38 status

Lastly you might want to try :rp=lp: in your /etc/printcap. If you get
the remote printer name wrong, it's bad juju. Make sure you kill and
restart lpd after your changes.

kind regards,
jcr

Reply via email to