[6620] in Release_7.7_team

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

Re: Desupporting lpr2 in the consult locker

daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Sat Feb 13 00:26:09 2010

Date: Sat, 13 Feb 2010 00:26:01 -0500 (EST)
From: Geoffrey Thomas <geofft@MIT.EDU>
To: Jonathan Reed <jdreed@mit.edu>
cc: release-team@mit.edu, consultdev@mit.edu
In-Reply-To: <9434FB47-2100-42CF-967C-7A7D5221EC47@mit.edu>
Message-ID: <alpine.DEB.1.10.1002130017280.31485@dr-wily.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

As a random thought, I wonder if it would be better to make it actually 
print the document (in case this is in dotfiles or your app defaults or 
something and you're in a hurry to get something printed for class) with a 
page on top saying in big scary letters "Don't use lpr2! See http://foo". 
(And still send e-mail.)

Anyway, since I don't like how we litter one-use dotfiles over the top 
level of the user's home directory, I'm slowly making a vague effort to 
acknowledge the XDG directory spec [1], which shares the same motivation, 
and use ~/.config/debathena/foo for new Debathena stuff. I'm not sure if 
you want to use that (or ~/.config/athena/lpr2-nagged) here.

[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

-- 
Geoffrey Thomas
geofft@mit.edu

On Fri, 12 Feb 2010, Jonathan Reed wrote:

> 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