My 'made-by-printtool' lp queue doesn't queue.

My 'made-by-printtool' lp queue doesn't queue.

Post by Mickey Stei » Sun, 31 Dec 1899 09:00:00



But aside from that .. It's just fine :)

I've got no problems with /dev/lp0 and have written a script that
manually  figures out the file type and prints it in the background but
this still isn't queueing. Printtool repeatedly seems to create the
right files in the right place /var/spool/lpd/lp/... and yet when you
print a file, you get no errors, it says it's printing if you do an lpq,
or an lpc status, but if you look in /tmp, there's always a 34.N MB file
for each lpq entry that stays forever.

Anyone seen this sort of behaviour? If I do an lprm to kill the entry ,
it leaves the file. That's how I found them was by running out of disk
space after about 50 lpr non-jobs.

         tia,

                 Mickey

(I've remade it many times, edited printcap manually, deleted
/var/spool/lpd/.... and recreated, and well, help!)

 
 
 

1. Can a msg queue be 'peeked' rather than 'read' ?

Hi,
    I would like to look at the contents of a message queue without
removing the message  from the queue. This would seem to rule out the
use of msgrcv() out as far as I can tell. So, I tried to read the
contents of a test queue I created via the msqid_ds and msg structures
defined (on my system) in <sys.msg.h> . However this failed with a
segmentation error when I tried to access the message type of the first
message on the queue. Using a debug utility I tried to dump the contents
of core at the message type location but this produceced no output at
all.

    This sounds like I have corrupted memory myself or that I am not
allowed to read that part of memory - unless the process is owned by
root perhaps (??) I guess this could be an OS-specific issue but there
is no group dedicated to the system on which I develop (SVR4 Dynix/ptx)
so I apologise.

    Can anyone confirm that the areas of  memory reserved for these
kernel-maintianed structures are generally unreadable by non-root owned
processes ? Or (even better !) can anyone suggest a technique for
'peeking' rather than 'reading/removing' a message on a message queue  ?

    Thanks,
    Kev.

2. COMMERCIAL: New Trans-Ameritech Supplement #3! Linux for $10

3. Making 'nobanner' Default in V.3.2 'lp'

4. Memory Use Monitor Command

5. What's an 'existing issue queue' ??

6. newbie still has problems with DNS and internet provider

7. lp queues jobs locally but won't send to remote printer

8. New: Laptop keyboard doesn't work

9. Print queue flooded with 'finished printing' zombies...

10. How to use 'at' to queue script commands?

11. 'Batch' queue

12. TCP send/receive queue in 'netstat -a'

13. UW7.0.1 print queue 'lockup' w/HPJetDirect