print spool directory filling up

Michael S. Hulet hulet at ittc.ukans.edu
Thu Aug 10 16:15:36 GMT 2000


man lpr
You should notice that the Solaris lpr command does not have the -r
option.  Use LPRng and your problems should be solved.  Or write a script
to remove all the old files out of /usr/local/samba/print/ and run it out
of cron.


Michael Hulet
Network System Administrator
ITTC, University of Kansas


On Fri, 11 Aug 2000, Melissa M. Thrush wrote:

> Michael,
> 
> > lpr -r -Pmaxl5 /etc/resolv.conf
> > 
> > tells lpr to print resolv.conf, then delete it !!
> > 
> > You should check it out with the spool file Samba did generate.
> > 
> > The printing should go like this:
> > 
> > win send file to samba
> > samba stores it in the "path" of the [printers] share
> > samba calls lpr -r, which should remove that file generated above
> > 
> > So, try the lpr command on the /usr/local/samba/print/... spool
> > files, and see if they get deleted after printing.
> 
> Thanks for your help.  Unfortunately it appears that the lpr -r command
> isn't working on our Solaris 2.6 Samba server.  I can put a file in
> /usr/local/samba/print or /tmp and if I use lpr -r filename the file is
> printed correctly but never removed.  I have to manually remove it with
> the rm command.
> 
> Any ideas?
> 
> Thanks,
> 
> Melissa
> --
> Melissa Thrush                              Dept. of Electrical Engineering
> mthrush at virginia.edu                        University of Virginia 
> Thornton Hall C213                          351 McCormick Road 
> Phone: (804) 924-6072                       P.O. Box 400743
> Fax:   (804) 924-8818                       Charlottesville, VA 22904-4743
> 



More information about the samba-ntdom mailing list