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