home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / novell / 11256 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.9 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!destroyer!news.itd.umich.edu!jaynes
  2. From: jaynes@med.umich.edu (William Jaynes)
  3. Newsgroups: comp.sys.novell
  4. Subject: Re: Netware NFS, Banner printing
  5. Date: 8 Jan 1993 13:08:48 GMT
  6. Organization: University of Michigan - Medical Center
  7. Lines: 43
  8. Distribution: world
  9. Message-ID: <1ijud1INNkv@terminator.rs.itd.umich.edu>
  10. References: <726411028snz@childsoc.demon.co.uk> <1993Jan7.182445.6052@novell.com>
  11. NNTP-Posting-Host: hendrix.itn.med.umich.edu
  12. Originator: jaynes@hendrix.itn.med.umich.edu
  13.  
  14.  
  15. In article <1993Jan7.182445.6052@novell.com>, mcollins@db (Marty Collins) writes:
  16. |> mike@childsoc.demon.co.uk (Michael Bernardi) writes:
  17. |> : According to the Netware NFS docs, when printing from (an RS6000 under AIX)
  18. |> : unix to a Novell print queue, you cannot disable banners IN UNIX. Is it
  19. |> : possible to disable banners in Netware? (ie for user GUEST)?
  20. |> : Mike
  21. |> 
  22. |> THe suppression of banner is done only by the Unix host when printing from
  23. |> Unix. THis cane be done with AIX with either the lpr -h or lpr -J/nb
  24. |> commands.
  25. |> 
  26. |> I am not sure where you referenced this issue in the nfs manual.
  27. |> 
  28.  
  29. I had to solve this problem by renaming lpr to lpr.orig and writing a
  30. substitute lpr that would include the -h option.  I did it in Perl.
  31. Here's the script:
  32.  
  33. ----------------------------------------
  34. #!/bin/perl
  35.  
  36. #
  37. # Dumb replacement for lpr to always send the -h option to suppress
  38. # banner printing.  Have to do special checking in case lpr is sent
  39. # a file name that has a blank in it.  So, if an argument doesn't begin
  40. # with a - , then put it in quotes.
  41. #
  42.  
  43. for $i (@ARGV) {
  44.     if ($i =~ /^\-/) {
  45.         $arg .= " $i ";
  46.     }
  47.     else {
  48.         $arg .= " \"$i\" ";
  49.     }
  50. }
  51.  
  52. system ("/usr/ucb/lpr.orig -h $arg");
  53. -----------------------------------------------
  54. -- 
  55. William Jaynes, ITN, University of Michigan Medical Center, B1911 CFOB,
  56. Ann Arbor, MI 48109-0704; (313) 747-2778 - jaynes@umich.edu
  57.