home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / admin / 4362 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  921 b 

  1. Xref: sparky comp.unix.admin:4362 comp.unix.questions:9520 comp.sys.sgi:11578
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!psuvax1!psuvm!kjb6
  3. Organization: Penn State University
  4. Date: Wed, 29 Jul 1992 08:05:26 EDT
  5. From: <KJB6@psuvm.psu.edu>
  6. Message-ID: <92211.080526KJB6@psuvm.psu.edu>
  7. Newsgroups: comp.unix.admin,comp.unix.questions,comp.sys.sgi
  8. Subject: KEEPING RECORDS OF PRINT JOBS.
  9. Lines: 16
  10.  
  11. In this academic environment, I have a need to keep track of which "group" of
  12. students use the printer. My plan was to give a "group id" depending on the
  13. students majors, and then when a print job is sent to do something like:
  14.  
  15. "id |awk '{print $2}'
  16.  echo $name $id `date` >> /usr/spool/lp/interface/logname"
  17.  
  18. The problem is that the "$id" returns the group id for lp. How can I return
  19. the gid for the user ($logname)?
  20.  
  21. Any suggestions would be greatly appreciated.
  22.  
  23.  
  24.  
  25. Ken Bauer
  26. Pennsylvania State University - Behrend College
  27.