[Samba] Typo in Samba HOWTO collection example 19.2

John H Terpstra jht at Samba.Org
Sat Nov 6 23:29:30 GMT 2004


Robin,

You are correct. I have now fixed this in the sources.

Thanks.

- John T.

On Saturday 06 November 2004 14:32, Robin Munn wrote:
> Hi,
>
> Since the samba-docs mailing list is closed, I figured this was the best
> place to post this.
>
> I believe there's a typo in example 19.2 ("Overriding global CUPS
> settings for one printer") of the official Samba HOWTO collection. The
> "print command" parameter in the [special_printer] section contains
> several echo commands, separated by semicolons, followed by an rm
> command separated from the echo commands by a colon. I believe that last
> colon should be a semicolon. In other words, this is what I currently
> see at
> http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/CUPS-printing.ht
>ml#overridesettings
>
> ~ print command = echo "NEW: `date`: printfile %f" \
>
> |> /tmp/smbprn.log ; \
>
> echo " `date`: p-%p s-%s f-%f" >> /tmp/smbprn.log ; \
> echo " `date`: j-%j J-%J z-%z c-%c" >> /tmp/smbprn.log : rm %f
>
> And this is what I think it should be:
>
> ~ print command = echo "NEW: `date`: printfile %f" \
>
> |> /tmp/smbprn.log ; \
>
> echo " `date`: p-%p s-%s f-%f" >> /tmp/smbprn.log ; \
> echo " `date`: j-%j J-%J z-%z c-%c" >> /tmp/smbprn.log ; rm %f
>
> (The last colon has been replaced by a semicolon).
>
> It's minor, and the example is not likely to be used very often, but I
> thought it was worth correcting.
>
> --
> Robin Munn
> rmunn at pobox.com

-- 
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

Author:
The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.


More information about the samba mailing list