Subject: Re: Fixed the printing problem
To: Andrew Crossley <toast@iinet.net.au>
From: Nate Johnston <njohnston@broadwing.com>
List: netbsd-help
Date: 02/25/2000 09:58:04
On Fri, 25 Feb 2000, Andrew Crossley wrote:
> the man page for magic filter said to put #!/usr/local/bin/magicfilter
> at the top of /etc/printcap. I thought the # was a bit wierd as it
> denotes a commnet. But being a newbie, I thought it being coupled with
> ! meant something different. I got rid of the # and the ! and the
> space and it works. here is my printcap file:
The symbol #! means "execute this with the following command instead of
/sbin/sh". It is a special case and is not a comment. It absolutely has
to be the first line, if it appears anywhere else in a script it is just
a comment.
> # $NetBSD: printcap,v 1.4 1997/02/15 10:02:22 mikel Exp $
> # from: @(#)printcap 8.1 (Berkeley) 6/9/93
> /usr/local/bin/magicfilter
Change this to:
#!/usr/local/bin/magicfilter
#
# $NetBSD: printcap,v 1.4 1997/02/15 10:02:22 mikel Exp $
# from: @(#)printcap 8.1 (Berkeley) 6/9/93
and leave the rest the same.
--N.