home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!destroyer!news.itd.umich.edu!jaynes
- From: jaynes@med.umich.edu (William Jaynes)
- Newsgroups: comp.sys.novell
- Subject: Re: Netware NFS, Banner printing
- Date: 8 Jan 1993 13:08:48 GMT
- Organization: University of Michigan - Medical Center
- Lines: 43
- Distribution: world
- Message-ID: <1ijud1INNkv@terminator.rs.itd.umich.edu>
- References: <726411028snz@childsoc.demon.co.uk> <1993Jan7.182445.6052@novell.com>
- NNTP-Posting-Host: hendrix.itn.med.umich.edu
- Originator: jaynes@hendrix.itn.med.umich.edu
-
-
- In article <1993Jan7.182445.6052@novell.com>, mcollins@db (Marty Collins) writes:
- |> mike@childsoc.demon.co.uk (Michael Bernardi) writes:
- |> : According to the Netware NFS docs, when printing from (an RS6000 under AIX)
- |> : unix to a Novell print queue, you cannot disable banners IN UNIX. Is it
- |> : possible to disable banners in Netware? (ie for user GUEST)?
- |> : Mike
- |>
- |> THe suppression of banner is done only by the Unix host when printing from
- |> Unix. THis cane be done with AIX with either the lpr -h or lpr -J/nb
- |> commands.
- |>
- |> I am not sure where you referenced this issue in the nfs manual.
- |>
-
- I had to solve this problem by renaming lpr to lpr.orig and writing a
- substitute lpr that would include the -h option. I did it in Perl.
- Here's the script:
-
- ----------------------------------------
- #!/bin/perl
-
- #
- # Dumb replacement for lpr to always send the -h option to suppress
- # banner printing. Have to do special checking in case lpr is sent
- # a file name that has a blank in it. So, if an argument doesn't begin
- # with a - , then put it in quotes.
- #
-
- for $i (@ARGV) {
- if ($i =~ /^\-/) {
- $arg .= " $i ";
- }
- else {
- $arg .= " \"$i\" ";
- }
- }
-
- system ("/usr/ucb/lpr.orig -h $arg");
- -----------------------------------------------
- --
- William Jaynes, ITN, University of Michigan Medical Center, B1911 CFOB,
- Ann Arbor, MI 48109-0704; (313) 747-2778 - jaynes@umich.edu
-