[6619] in Release_7.7_team

home help back first fref pref prev next nref lref last post

Desupporting lpr2 in the consult locker

daemon@ATHENA.MIT.EDU (Jonathan Reed)
Fri Feb 12 23:48:48 2010

From: Jonathan Reed <jdreed@MIT.EDU>
Content-Type: text/plain; charset=us-ascii
Date: Fri, 12 Feb 2010 23:48:34 -0500
Message-Id: <9434FB47-2100-42CF-967C-7A7D5221EC47@mit.edu>
Cc: consultdev@mit.edu
To: release-team@mit.edu
Mime-Version: 1.0 (Apple Message framework v1077)
Content-Transfer-Encoding: 8bit

Back in 2006 we started logging usage of lpr2 to see who used it.  The answer appears to be "a lot of people", sadly.   I really really really want to kill it, and plan to do so when we punt the binaries from the "save" locker.  (SAVE as an ASA group is defunct, and the last (2008-09) officers of SAVE have given us permission to punt the attachrc and some binaries -- there will be a separate thread about that).   

Since the start of the year, it has been used 22 times.  We don't log user info, but we do log timestamps, and based on those, it seems like it was used by anywhere from 11 to 17 distinct users.    (I assume that invocations separated by less than 60 seconds are likely the same user).

The "features" that lpr2 has are:
- can enable duplex tumble mode (hasn't worked since the 4si days)
- can enable bottom tray (unclear if this works)
- runs plain text files through enscript
- printing of EZ files straight from the command line (!)

I'd like to replace lpr2 with something like the following (obviously the message text will be more useful).   Let me know what you think. 

-Jon

#!/bin/sh
#
# new lpr2
#

if [ -z "$DISPLAY" ]; then
	zwrite -d $USER -s "Printing Subsystem" -m "lpr2 is no longer supported, see http://blah"
else
	zenity --info --text="lpr2 is no longer supported, see http://blah"
fi
if [ ! -f ~/.athena-lpr2-nagged ]; then
	/usr/sbin/sendmail -t <<EOF 
To: $USER@mit.edu 
From: Athena Printing Subsystem <devnull@mit.edu> 
Subject: The 'lpr2' command is no longer supported 

Hi, 
lpr2 is no longer supported. See http://blah 
EOF 
	touch ~/.athena-lpr2-nagged
fi

home help back first fref pref prev next nref lref last post