lpd on commandline does nothing...and it's there at /usr/sbin/lpd ?

lpd on commandline does nothing...and it's there at /usr/sbin/lpd ?

Post by Tony Gonzale » Fri, 28 Mar 1997 04:00:00



I'm trying to start lpd on t commandline but it won't start.   It's there
at /usr/sbin/lpd but it just won't show up with 'ps -aux'. I
have a bare bones system so there may be something missing, but
what?  Anyone know what could keep such a daemon from running?
I get no errors when I type lpd.

Thanks

-Tony

----------- here's my setup ----------

I've got filter at /var/spool/lpd/lp  and printcap at /etc

######################## printcap #################

# /etc/printcap
##PRINTTOOL## LOCAL ljet4 300x300 letter {}
lp:\
        :sd=/var/spool/lpd/lp:\
        :mx#0:\
        :lp=/device/lp1:\
        :if=/var/spool/lpd/lp/filter:\
        :sh:

######################## filter #################

#!/bin/sh

DEVICE=ljet4
RESOLUTION=300x300
PAPERSIZE=letter
SENDEOF=

nenscript -TUS -ZB -p- |
if [ "$DEVICE" = "PostScript" ]; then
        cat -
else
        gs -q -sDEVICE=$DEVICE \
                -r$RESOLUTION \
                -sPAPERSIZE=$PAPERSIZE \
                -dNOPAUSE \
                -dSAFER \
                -sOutputFile=- -
fi

if [ "$SENDEOF" != "" ]; then
        printf "\004"
fi

exit 0

 
 
 

lpd on commandline does nothing...and it's there at /usr/sbin/lpd ?

Post by John Gluc » Sun, 30 Mar 1997 04:00:00



> I'm trying to start lpd on t commandline but it won't start.   It's there
> at /usr/sbin/lpd but it just won't show up with 'ps -aux'. I
> have a bare bones system so there may be something missing, but
> what?  Anyone know what could keep such a daemon from running?
> I get no errors when I type lpd.

> Thanks

> -Tony

> ----------- here's my setup ----------

> I've got filter at /var/spool/lpd/lp  and printcap at /etc

> ######################## printcap #################

> # /etc/printcap
> ##PRINTTOOL## LOCAL ljet4 300x300 letter {}
> lp:\
>         :sd=/var/spool/lpd/lp:\
>         :mx#0:\
>         :lp=/device/lp1:\
>         :if=/var/spool/lpd/lp/filter:\
>         :sh:

> ######################## filter #################

> #!/bin/sh

> DEVICE=ljet4
> RESOLUTION=300x300
> PAPERSIZE=letter
> SENDEOF=

> nenscript -TUS -ZB -p- |
> if [ "$DEVICE" = "PostScript" ]; then
>         cat -
> else
>         gs -q -sDEVICE=$DEVICE \
>                 -r$RESOLUTION \
>                 -sPAPERSIZE=$PAPERSIZE \
>                 -dNOPAUSE \
>                 -dSAFER \
>                 -sOutputFile=- -
> fi

> if [ "$SENDEOF" != "" ]; then
>         printf "\004"
> fi

> exit 0

Hi

In your printcap chage the following line:

         :lp=/device/lp1:\

it should read:

         :lp=/dev/lp1:\

Also try copying a file directly to /dev/lp1. You might get junk on the
printer but it checks to see that your printer really is connected to
lp1

John Gluck

 
 
 

lpd on commandline does nothing...and it's there at /usr/sbin/lpd ?

Post by Tony Gonzale » Sun, 30 Mar 1997 04:00:00


Here's what i got from lpc:

     bash# lpc start all
     lp:
             printing enabled
     lpc: connect: Connection refused
             couldn't start daemon

(BTW-That line in my printcap "/device/lp1" is "really /dev/lp1" I just
have an abreviation in my editor that that extended it when i pasted it
to my newreader's editor.)

-Tony

.   .   .   .  . . . . . . . . ._______________________________________.

                               |_____________|___ Southern California _|

 
 
 

1. lpd on commanline does nothing...and it's there at /usr/sbin/lpd ?

I'm trying to start lpd but it won't start.   It's there
at /usr/sbin/lpd but it just won't show up with 'ps -aux'. I
have a bare bones system so there may be something missing, but
what?  Anyone know what could keep such a daemon from running?
I get no errors when I type lpd.

Thanks

-Tony

----------- here's my setup ----------

I've got filter at /var/spool/lpd/lp  and printcap at /etc

######################## printcap #################

# /etc/printcap
##PRINTTOOL## LOCAL ljet4 300x300 letter {}
lp:\
        :sd=/var/spool/lpd/lp:\
        :mx#0:\
        :lp=/device/lp1:\
        :if=/var/spool/lpd/lp/filter:\
        :sh:

######################## filter #################

#!/bin/sh

DEVICE=ljet4
RESOLUTION=300x300
PAPERSIZE=letter
SENDEOF=

nenscript -TUS -ZB -p- |
if [ "$DEVICE" = "PostScript" ]; then
        cat -
else
        gs -q -sDEVICE=$DEVICE \
                -r$RESOLUTION \
                -sPAPERSIZE=$PAPERSIZE \
                -dNOPAUSE \
                -dSAFER \
                -sOutputFile=- -
fi

if [ "$SENDEOF" != "" ]; then
        printf "\004"
fi

exit 0

2. slakware --> glibc, 2.2.1 kernel, etc.

3. lpd: Fatal error - Cannot bind to lpd port '515'

4. Default ACL problem

5. lpd - can't connect? lpd.perms OK?

6. Please enlighten a Linux initiate

7. Linux's LPD problem... any newer lpd?

8. odd problem with time on email

9. LPD thinks it's printing to USB but nothing happens

10. /usr/sbin/traceroute ha1 ksh: /usr/sbin/traceroute: not found

11. Can someone post lpd.conf and lpd.perm files

12. Setting up plp/lpd for lpd only

13. lpd to lpd