If this hasn't been resolved yet I'd be avoiding any actual printing system (ie cups & lpr & lprng) and just use the "print command" for the particular printer share you've setup in samba. There's an example to get you started in "man smb.conf". You could slot a call to your script in there quite easily.
Suggestions of running a batch process from cron are a bit silly unless of course you wish to delay the processing until nobody's using the system (ie batch process overnight - & perhaps publish to a website). On Thu, 15 Nov 2001, Christopher Booth wrote: > One step closer > > I actually created a shell script in /etc/cron.hourly called pdfdistiller > > #!/bin/sh > DATE=`date +%b%d-%H%M%S` > if test -f /shr/pdf/*.ps > then > /usr/bin/ps2pdf /shr/pdf/*.ps /shr/pdf/$DATE.tmp > mv /shr/pdf/$DATE.tmp /shr/pdf/$DATE.pdf > rm /shr/pdf/*.ps > #/usr/bin/printpdf /shr/pdf/*.ps > fi > echo no postscript file to process > > and setup a printer under cups using the distiller ppd. and printing to file >/shr/pdf/test.ps > > I would like to change the regularity of the cron job to say every minute... > How do I do this ? > I can't print through samba printing, and I don't know why. > > In my smb.conf file, there are two places where print commands are listed. > under printers which is lpr-cups > and under globals, and the printcap name said lpstat > Is this normal ? > > Chris > > > On Thu, 15 Nov 2001 14:25:36 +1100 > "Booth, Christopher (Aus) - ATP" <[EMAIL PROTECTED]> wrote: > > > Has anyone got this working with cups on Mandrake 8? > > Which funnily enough has the adobe distiller ppd listed as a printer driver, > > only outputs in *.ps though > > I am toying with making a cron job to check the directory every hour and > > convert any postscript files to pdf. > > > > I am trying to set it up, but restarting the cupsd rewrites the > > /etc/printcap file > > > > Chris > > > > -----Original Message----- > > From: Mike Lake [mailto:[EMAIL PROTECTED]] > > Sent: Friday, 16 November 2001 12:59 am > > To: slug > > Subject: Re: [SLUG] PostScript to PDF via virtual printer > > > > > > On Thu, Nov 15, 2001 at 10:30:15AM +1100, [EMAIL PROTECTED] wrote: > > > Just stumbled over this too, last night. It avoids the need to buy > > > expensive PDF creation software from Adobe. > > > http://www.linuxgazette.com/issue72/bright.html > > > > Yes it's an ace "trick". I have setup a few Windows PC's here to use a > > virtual PostScript printer (usually a colour HP laserjet) and ps2pdf to > > enable users to create PDF files. Whats really most interesting though is > > that most people believe that you MUST have Adobe Distiller to create any > > PDF files. I often get M$ Word files submitted to some web sites I run > > with the comment from the user "I don't have Distiller so I can't create > > PDF". Alas Adobe markets so well :-( > > > > Mike > > (who still prefers ps over pdf as I can lift up the bonnet of ps and fiddle > > with the carburettor) > > -- > > We don't really understand it, so we'll give it to the programmers. > > > > Michael Lake, University of Technology, Sydney > > Work: [EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02 9514 1628 > > Home: http://www.speleonics.com.au > > Linux enthusiast, active caver and interested in anything technical. > > *************************************** > > > > > > > > -- > > 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 > > -- ---<GRiP>--- Web: www.arcadia.au.com/gripz Phone/fax: 02 4950 1194 Mobile: 0408 686 201 -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
