home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / admin / 330 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  2.1 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!sgiblab!nec-gw!nec-tyo!wnoc-tyo-news!news.u-tokyo.ac.jp!s.u-tokyo!kekux!oohara
  2. From: oohara@anima.kek.ac.jp (Ken-ichi Oohara)
  3. Newsgroups: comp.sys.sgi.admin
  4. Subject: Re: network printers..???
  5. Message-ID: <OOHARA.93Jan28165032@anima.kek.ac.jp>
  6. Date: 28 Jan 93 07:50:32 GMT
  7. References: <ramsey.728092533@moonshine>
  8. Sender: news@kekux.kek.ac.jp (USENET News System)
  9. Organization: KEK, Tsukuba, Japan
  10. Lines: 61
  11. In-Reply-To: ramsey@sundance.llnl.gov's message of 26 Jan 93 23: 55:33 GMT
  12. Nntp-Posting-Host: anima
  13.  
  14. In article <ramsey.728092533@moonshine> ramsey@sundance.llnl.gov (Susanne B. Ramsey) writes:
  15.  
  16. >   I have tried several ways of accessing from the SGI some printers that are
  17. >   either on non-SGI systems or have network interfaces.. I am doing this so 
  18. >   that users can print from the Workspace and not have to worry about issuing
  19. >   commands at the command line..   
  20. >
  21. >   The only success I have had is by doing the following:
  22. >
  23. >   creating a file with the following in /usr/spool/lp/model
  24. >
  25. >       #! /bin/sh
  26.              :
  27.              :
  28. >       files="$*"
  29. >       i=1
  30. >       while [ $i -le $copies ]
  31. >       do
  32. >            for file in $files
  33. >            do
  34. >                lpr -Pqmsps "$file"
  35. >            done
  36. >            i=`expr $i = 1`
  37. >       done
  38. >       exit 0
  39. >
  40. >
  41.  
  42. In article <ramsey.728094282@moonshine> ramsey@sundance.llnl.gov (Susanne B. Ramsey) writes:
  43.  
  44. >   Another problem related to this that I am having...
  45. >
  46. >   when I tried to send a file to one of the "network" printers I got into
  47. >   some sort of a loop and started sending out about 900 copies of /etc/printcap
  48.  
  49. I am using the similar way with a shell script a bit different from
  50. Susanne's; like
  51.  
  52.     #!/bin/sh
  53.     #
  54.     NAME=
  55.     TYPE=Dumb
  56.     seqid=$1
  57.     name=$2
  58.     title="$3"
  59.     copies=$4
  60.     options="$5"
  61.     shift; shift; shift; shift; shift
  62.     files="$*"
  63.  
  64.     lpr -Plpr_printer -#$copies $options $files
  65.     exit 0
  66.  
  67. This will call 'lpr' once even if I need 900 copies. 
  68. I can specify lpr options (except -m option) as -o'lpr-options'
  69. like
  70.  
  71.     % lp -dlpr_printer -o'-p -T test' files
  72.  
  73. Even if you add lpr's -m option, you will *not* recieve a mail
  74. upon completion, but the mail will be sent to user 'lp'.
  75.