[Samba] Samba PDF printer...
Hello Using Samba 2.2.8a on a Redhat 7.2 box I set up a PDF generator relying on Samba and a shell script to create the output. This works fine but I have a further trouble that I am stumped by. The files cannot be viewed from within a Citrix session (the point of the entire exercise) unless they are available from this one NT Server share. So if I mount a Windows NT server share under '/mnt/gpsc/pdfs' and then redirect the output to that directory, everything looks like it works but I get no output. I can create/edit files, as a variety of users, on this NT share from the Linux box so I think that part is fine but I cannot do this from Samba. I would normally expect some sort of complaint in the form of a log entry but nothing shows up in the logs (log level = 3). -8/tmp/pdfdebug # Machine name to check popup going to correct netbios name echo "MachineNetBiosName: $2">/tmp/pdfdebug # Username supplied to samba for creating filename echo "SambaUserName: $3">>/tmp/pdfdebug # Options are not essential, but useful to control finer features of pdf's OPTIONS="-dSubsetFonts=true -dEmbedAllFonts=true" # Counter ensures meaningless but unique filenames PDFCOUNTFILE=/etc/pdf/"pdfcount" if [ -f $PDFCOUNTFILE ] ; then COUNT=`cat $PDFCOUNTFILE` else COUNT=0 fi let COUNT=COUNT+1 # write counter to /etc/pdf/pdfcount echo "$COUNT">$PDFCOUNTFILE # filename for pdf output based on Windows Username and COUNT number OUTPUTFILENAME=$NAMEFILE-$COUNT.pdf # Send the message first to make it seem faster. MESSAGE="\\134\134PdfServer\134pdfs\134$OUTPUTFILENAME has been created" echo -e $MESSAGE | smbclient -M $MACHINENETBIOSNAME -U "PDF SERVER" > /dev/null 2>&1 # Finally, make the pdf... ps2pdf13 $OPTIONS /tmp/$SAMBAUSERNAME $OUTPUTDIR/$OUTPUTFILENAME # Remove the temporary file written by Samba rm /tmp/$SAMBAUSERNAME # End -8< end snip --- Any helpful guidance would be welcomed, Thank you for reading Gus -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba PDF Printer
Create a print queue that uses an if script to create the pdf from the sent post script file (ghostscript). set up the script to send the file back to the user via email. Charles Marcus wrote: > Anyone know any good How-Tos on how to set up a Printer in Samba that > wilol create PDF files? > > Thanks > > Charles > > > -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba PDF Printer
Does anyone know of a good method to do this with PCL to PDF? I know there are some commercial apps out there, but I was wondering if there was something in the open source arena (read FREE) that would do this? Thanks! - Kevin -Original Message- From: Gareth Blades [mailto:[EMAIL PROTECTED]] Posted At: Friday, April 05, 2002 11:37 AM Posted To: Announce Conversation: [Samba] Samba PDF Printer Subject: RE: [Samba] Samba PDF Printer There were a few discussions around the 26th of March that you could look through in the archives. I used the procedure in the article at http://www.linuxgazette.com/issue72/bright.html to setup mine. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Charles Marcus > Sent: 05 April 2002 16:51 > To: Samba Maillist (E-mail) > Subject: [Samba] Samba PDF Printer > > > Anyone know any good How-Tos on how to set up a Printer in Samba that > wilol create PDF files? > > Thanks > > Charles > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > > -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Samba PDF Printer
There were a few discussions around the 26th of March that you could look through in the archives. I used the procedure in the article at http://www.linuxgazette.com/issue72/bright.html to setup mine. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Charles Marcus > Sent: 05 April 2002 16:51 > To: Samba Maillist (E-mail) > Subject: [Samba] Samba PDF Printer > > > Anyone know any good How-Tos on how to set up a Printer in Samba that > wilol create PDF files? > > Thanks > > Charles > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba > > -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Samba PDF Printer
Anyone know any good How-Tos on how to set up a Printer in Samba that wilol create PDF files? Thanks Charles -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba