Hey Simon

I still haven't got mine distiller through samba to work, I'm interested in seeing how 
you got it to work.
I have been trying to set this up on my Mandrake box, but even though I can print 
locally to the printer I have set up (called distiller) which creates a test.ps file 
in /shr/pdf (permissions owner=nobody,group=nobody)
the /shr directory is setup under samba to be
[shr]
        path=/shr/pdf
        create mask = 0777
        browseable = Yes
        Writeable = Yes
        guest ok = Yes
        force user = nobody

I then have a cron job which checks the directory every 5 minutes and converts to pdf, 
more or less as per your script below.

When I print through samba from a Winnt box or another mandrake the files disappear 
into the never, never.  Printing SMB to another printer setup prints fine.

CUPS is the printer backend

I can't work it out

Regards

Chris

On Tue, 18 Dec 2001 11:19:57 +0000
"Rev Simon Rumble" <[EMAIL PROTECTED]> wrote:

> I solved my pdf printing problem by trying to log the output of
> ps2pdf.  As soon as I redirected the output of ps2pdf, the files
> started printing just fine!  Can anyone pick why?!?!?
> 
> #!/bin/sh
> 
> # Simple script to convert a specified postscript file into a PDF
>   document
> # and place it in a location that is shared by the Samba server.
> #
> # Arguments:
> #   1st - The name of the spool file
> #
> # John Bright, 2001, [EMAIL PROTECTED]
> 
> # We will create the pdf into a temporary file based upon the current date and time.
> # After we are finished, we'll rename it to a file with the same date, but ending
> # in .pdf.  We do this because if a user tries to open a PDF that is still being 
>written,
> # they will get a message that it is corrupt, when it is actually just not done yet.
> 
> DATE=`date +%b%d-%H%M%S`
> 
> # Directory in which to place the output
> # Be sure this directory exists and is writable by the user that Samba
> # is running as (for example, the nobody user)
> OUTDIR=/var/spool/pdfdropbox
> 
> ps2pdf $1 $OUTDIR/$DATE.temp >/tmp/pdfprint.log
> mv $OUTDIR/$DATE.temp $OUTDIR/$DATE.pdf
> rm $1
> 
> 
> -- 
> Rev Simon Rumble <[EMAIL PROTECTED]>
> www.rumble.net
> 
> What a country calls its vital economic interests are not
> the things which enable its citizens to live, but the
> things which enable it to make war.
> 
> - Simone Weil
> 
> -- 
> SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
> More Info: http://lists.slug.org.au/listinfo/slug

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to