I do not have that option for notepad, but I do for wordpad. I get two copies
when I ask
for it. No problem.
Here is my smb.conf file for my printer. Don't be mystified by the long
print command. That is just to capture the print job name for debugging
stuff and to get a decent display of the job name in the windows print
queue. I mean, who need to see
The command is really just: /usr/bin/lpr -Pps -J"$a" %s; rm %s
where a is captured from the J variable passed by windows to the samba
server. Otherwise, the name is just too long to display, sometimes. If you
don't use the %J variable, you get the silly smbprn.000400.CFI7Uf name.
[ps]
comment = Filtered for Z53
path = /tmp
read only = No
create mask = 0700
guest ok = Yes
hosts allow = 192.168.
printable = Yes
printing = lprng
print command = echo %J %p %s >> /tmp/junkJ;\
a="`echo '%J' | sed "s/^.*-
//"`" ;\
echo This is truncated $a >> /tmp/junkJ;\
/usr/bin/lpr -Pps -J"$a" %s;\
rm %s
lpq command = /usr/bin/lpq -Pps
lprm command = /usr/bin/lprm -Pps %j
lppause command = /usr/sbin/lpc hold z53 %j
lpresume command = /usr/sbin/lpc release z53 %j
share modes = No
Joel
On Fri, May 10, 2002 at 03:25:37PM -0700, Maithri Samuel
wrote:> Hi Joel,
>
> I'm running windows 2000 and in notepad, I select
> FILE menu, select PRINT. In the dialogue box that
> pops up, there's an option NUMBER OF COPIES.
>
> I also tried multiple copies in WORD. No luck,
> still only 1 copy. Frankly, I'm kinda stumped.
> Anyone who can print multiple copies care to
> paste their printcap/smb.conf?
>
> Cheers.
>
> Mike Samuel
>
> -----Original Message-----
> From: Joel Hammer [mailto:Joel@HammersHome.com]
> Sent: May 10, 2002 3:19 PM
>
> How do you sed 20 copies from notepad? I don't see any option to print
a
> certain number of copies.
> Joel
>
> > Hi,
> >
> > I successfully setup printing on my FreeBSD box
> > using Samba with apsfilter and lprng. However, I
> > have encountered two issues:
> >
> > 1) Cannot print multiple copies of documents from
> > my windows box (e.g. notepad). Only the first
> > copy is printed and the rest don't get printed.
> > 2) My spool directory is getting filled up and
> > I would like the job removed after the print
> > job is finished
> >
> > I've tried:
> > - selecting collated and not collated in the
> > windows printing, that didn't fix the problem.
> > Still one copy printed.
> > - adding lpd_bounce in both and also one at a time in
> > the /etc/printcap and in the /usr/local/etc/lpd.conf.
> > /etc/printcap -> added :lpd_bounce:\ before my :mx line
> > /usr/local/etc/lpd.conf -> changed to
> > # default lpd_bounce (FLAG on)
> > Still one copy printed. Changed them back to not have
> > lpd_bounce but still only one copy ;)
> > - even when I do lpr -r DOC_NAME in FreeBSD,
> > it still leaves stuff in the spool directory.
> > I use lprm - to flush it
> >
> > Things I've setup:
> > - using the default lpd.conf and lpd.perms files.
> > - not running passwords or custom freebsd users on samba.
> > Strictly guest access by user nobody.
> > - set up mode 1777 on the samba print dir
> > - Ran checkpc -f -V. No problems. Had an old
> > problem of not being able to access /dev/lpt0 but
> > I fixed the access privilages (still wierd that
> > we have to do that, the freebsd installed lpr
> > didn't require that, why does lprng require
> > changing the port's access rights?)
> > - I can print multiple copies from the FreeBSD
> > box if I run lpr -#N, up to the 20 limit I
> > specified below.
> >
> > I will greatly appreciate help in fixing
> > these two problems. I've included my setup files
> > below. If there is any else that is required,
> > please reply and I will include the details of
> > that as well.
> >
> > Cheers.
> >
> > ******
> > ******
> >
> > Current setup is:
> > Windows 2000 client
> > FreeBSD 4.5 server
> > running
> > Samba-2.2.2_3
> > Apsfilter-7.2.2
> > LPRng-3.8.10
> >
> > /ETC/Printcap
> > # APS1_BEGIN:printer1
> > # - don't delete start label for apsfilter printer1
> > # - no other printer defines between BEGIN and END LABEL
> > HP-Deskjet-560C|stp/pcl-560;r=300x300;q=high;c=full;p=letter;m=auto:\
> > :lp=/dev/lpt0:\
> > :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
> > :sd=/var/spool/lpd/HP-Deskjet-560C:\
> > :lf=/var/spool/lpd/HP-Deskjet-560C/log:\
> > :af=/var/spool/lpd/HP-Deskjet-560C/acct:\
> > :mx#0:\
> > :mc#20:\
> > :sh:
> > # APS1_END - don't delete this
> >
> > /USR/LOCAL/ETC/SMB.CONF
> > [global]
> > ...
> > load printers = yes
> > use client driver = yes
> > printing = lprng
> > guest account = nobody
> > max log size = 50
> > security = share
> > socket options = TCP_NODELAY
> > dns proxy = no
> > domain master = yes
> > preferred master = yes
> >
> > #print command = /usr/local/bin/lpr -U%U%M -P%p -r %s;
> > print command = /usr/local/bin/lpr -P%p %s;\
> > rm %s
> > lpq command = /usr/local/bin/lpq -P%p %s
> > lprm command = /usr/local/bin/lprm -P%p %j
> > lppause command = /usr/local/sbin/lpc hold %p %j
> > lpresume command = /usr/local/sbin/lpc release %p %j
> > queuepause command = /usr/local/sbin/lpc -P%p stop
> > queueresume command = /usr/local/sbin/lpc -P%p start
> >
> > #============================ Share Definitions
> > =============================> > [Storage]
> > comment = Temporary Server file area
> > path = /tmp
> > read only = no
> > public = yes
> > writeable = yes
> > guest ok = yes
> >
> > [printers]
> > comment = All printers
> > path = /var/spool/samba
> > browseable = no
> > printer = raw
> > printer name = HP-Deskjet-560C
> > public = yes
> > guest ok = yes
> > writeable = no
> > printable = yes