I have a bit of a problem, however, I am not sure if it has been solved, or what. I have: RedHat Linux 7.2 samba version 2.2.1a Client machine is Windows NT 4.0 (Service Pack 5.0) Printer: using an NT driver on an NT machine configured to print to the port-'file'. problem: I am trying to print a file on a samba file server to a "printer". When the file is stored on an NT machine, I get the dialog box that asks for output file location. If I print the file from samba, I don't get the prompt and printing fails. I have looked through the mailing list and haven't found anything simluar. I also looked at the recent fixes to samba, but haven't seen anything that deals with this problem. Sometimes, NT seems to write a file called "Ne01:", could that be part of the problem. In both cases, the win32 function 'StartDoc' return 1, it just doesn't display the dialog box. Brian
I have a bit of a problem, however, I am not sure if it has been solved, or what. I have: RedHat Linux 7.2 samba version 2.2.1a Client machine is Windows NT 4.0 (Service Pack 5.0) Printer: using an NT driver on an NT machine configured to print to the port-'file'. problem: I am trying to print a file on a samba file server to a "printer". When the file is stored on an NT machine, I get the dialog box that asks for output file location. If I print the file from samba, I don't get the prompt and printing fails. I have looked through the mailing list and haven't found anything simluar. I also looked at the recent fixes to samba, but haven't seen anything that deals with this problem. Sometimes, NT seems to write a file called "Ne01:", could that be part of the problem. In both cases, the win32 function 'StartDoc' return 1, it just doesn't display the dialog box. Brian
Hello does anyone have an example printcap config to print to a file? I need this because I use the pdfprint script posted here earlier but if you print to that printer the program that prints hangs until the program finishes. TIA Maxor -------------- next part -------------- HTML attachment scrubbed and removed
What format do you want the file to be converted into? Joel On Wed, Sep 18, 2002 at 08:53:50PM +0200, Sander van Vliet wrote:> The print jobs arrive in PostScript. (apple laserwriter) > > Greetz Maxor > > ----- Original Message ----- > From: "Joel Hammer" <Joel@HammersHome.com> > To: "Sander van Vliet" <maxor@tref.nl>; <samba@lists.samba.org> > Sent: Wednesday, September 18, 2002 6:13 PM > Subject: Re: [Samba] Printing to file > > > > I use lprng. > > > > text:\ > > :sd=/var/spool/lpd/text:\ > > mx#0:\ > > :lp=/var/spool/lpd/text/textprint:\ > > :if=/var/spool/lpd/text/filter:\ > > :sh: > > > > This works for me. > > Make sure the file is permissive. Your printer daemon has to be able to > > print to it. > > The filter is a question. Since you aren't printing to a printer, you > woon't > > use the same filter you would use for a real print queue. What format will > > the print job arrive in? What format do you want it to be once it is in > the > > file? > > Run checkpc -f to make sure things look right. > > Don't forget, after you make these changes, you have to restart lpd. > > Joel > > > > > > On Wed, Sep 18, 2002 at 02:10:06PM +0200, Sander van Vliet wrote: > > > Hello does anyone have an example printcap config to print to a file? > > > I need this because I use the pdfprint script posted here earlier but if > you print to that printer the program that prints hangs until the program > finishes. > > > > > > TIA Maxor > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: http://lists.samba.org/mailman/listinfo/samba
Well, the printcap below, and the print filter: #!/bin/bash ps2pdf - and a file /var/spool/lpd/text/textprint with chmod 777 works fine for me to convert postscrpt to pdf and save it to the file. You may have to mess with std in and out with the ps2pdf command. So, what was the problem again? Joel On Thu, Sep 19, 2002 at 05:41:03AM -0400, vlie0180@planet.nl wrote:> > The file needs to be converted to pdf (I use ps2pdf) > Greetz Maxor > > >Joel > >On Wed, Sep 18, 2002 at 08:53:50PM +0200, Sander van Vliet wrote: > >> The print jobs arrive in PostScript. (apple laserwriter) > >> > >> Greetz Maxor > >> > >> ----- Original Message ----- > >> From: "Joel Hammer" <Joel@HammersHome.com> > >> To: "Sander van Vliet" <maxor@tref.nl>; <samba@lists.samba.org> > >> Sent: Wednesday, September 18, 2002 6:13 PM > >> Subject: Re: [Samba] Printing to file > >> > >> > >> > I use lprng. > >> > > >> > text:\ > >> > :sd=/var/spool/lpd/text:\ > >> > mx#0:\ > >> > :lp=/var/spool/lpd/text/textprint:\ > >> > :if=/var/spool/lpd/text/filter:\ > >> > :sh: > >> > > >> > This works for me. > >> > Make sure the file is permissive. Your printer daemon has to be able to > >> > print to it. > >> > The filter is a question. Since you aren't printing to a printer, you > >> woon't > >> > use the same filter you would use for a real print queue. What format will > >> > the print job arrive in? What format do you want it to be once it is in > >> the > >> > file? > >> > Run checkpc -f to make sure things look right. > >> > Don't forget, after you make these changes, you have to restart lpd. > >> > Joel > >> > > >> > > >> > On Wed, Sep 18, 2002 at 02:10:06PM +0200, Sander van Vliet wrote: > >> > > Hello does anyone have an example printcap config to print to a file? > >> > > I need this because I use the pdfprint script posted here earlier but if > >> you print to that printer the program that prints hangs until the program > >> finishes. > >> > > > >> > > TIA Maxor > >> > -- > >> > To unsubscribe from this list go to the following URL and read the > >> > instructions: http://lists.samba.org/mailman/listinfo/samba