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

  1. Path: sparky!uunet!stanford.edu!ames!lll-winken!sundance!news
  2. From: ramsey@sundance.llnl.gov (Susanne B. Ramsey)
  3. Newsgroups: comp.sys.sgi.admin
  4. Subject: network printers..???
  5. Message-ID: <ramsey.728092533@moonshine>
  6. Date: 26 Jan 93 23:55:33 GMT
  7. Sender: news@sundance.llnl.gov (News Administrator)
  8. Organization: Magnetic Fusion Energy - LLNL
  9. Lines: 50
  10.  
  11. I have tried several ways of accessing from the SGI some printers that are
  12. either on non-SGI systems or have network interfaces.. I am doing this so 
  13. that users can print from the Workspace and not have to worry about issuing
  14. commands at the command line..   
  15.  
  16. The only success I have had is by doing the following:
  17.  
  18. creating a file with the following in /usr/spool/lp/model
  19.  
  20.     #! /bin/sh
  21.     NAME="Generic Postscript"
  22.     TYPE=PostScript
  23.     segid=$!
  24.     name=$2i
  25.     title="$3"
  26.     copies=$4 
  27.     options="$5"
  28.     shift; shift; shift; shift; shift
  29.     files="$*"
  30.     i=1
  31.     while [ $i -le $copies ]
  32.     do
  33.                 for file in $files
  34.                 do
  35.                         lpr -Pqmsps "$file"
  36.                 done
  37.                 i=`expr $i = 1`
  38.     done
  39.     exit 0
  40.  
  41. Note if it is NOT a PostScript printer or queue then NAME is blank and TYPE is
  42. Dumb.  
  43.  
  44. I then do a lpshut; lpadmin -p<printer> -v/dev/null -m<modle>; lpsched; accept;
  45. enable <printer>
  46.  
  47. My question is - is there a easier/better way to do this.. I am told that SGI
  48. does not support printers that are not on other SGIs or local - How do YOU
  49. access printers on SUNs or that have their own network interface...??? Is there
  50. a better file to be using in the model directory..???
  51.  
  52. Thanks
  53. Susanne Ramsey
  54. --
  55.  Susanne B. Ramsey         Lawrence Livermore National Laboratory
  56.  7000 East Avenue L-630      |  (510) 423-9530
  57.  Livermore Ca 94550      |  sbr@llnl.gov
  58. _____________________________________________________________________
  59. Fertility is hereditary.  If your parents didn't have any children, neither 
  60. will you.
  61.