From owner-freebsd-hackers Tue Jan 5 14:50:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA24218 for freebsd-hackers-outgoing; Tue, 5 Jan 1999 14:50:05 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.force9.co.uk [195.166.136.63]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA23977 for ; Tue, 5 Jan 1999 14:49:10 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from dev.lan.awfulhak.org (dev.lan.awfulhak.org [172.16.0.5]) by awfulhak.org (8.8.8/8.8.8) with ESMTP id WAA21994; Tue, 5 Jan 1999 22:23:12 GMT (envelope-from brian@Awfulhak.org) Received: from dev.lan.awfulhak.org (localhost [127.0.0.1]) by dev.lan.awfulhak.org (8.9.1/8.9.1) with ESMTP id WAA57122; Tue, 5 Jan 1999 22:23:11 GMT (envelope-from brian@dev.lan.awfulhak.org) Message-Id: <199901052223.WAA57122@dev.lan.awfulhak.org> X-Mailer: exmh version 2.0.2 2/24/98 To: Ruslan Ermilov cc: Brian Somers , FreeBSD Hackers Subject: Re: Proposed small change to ppp(8): CONNECT -> CALLER_ID In-reply-to: Your message of "Thu, 31 Dec 1998 12:00:57 +0200." <19981231120057.A1164@ucb.crimea.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Tue, 05 Jan 1999 22:23:11 +0000 From: Brian Somers Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id OAA24128 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, How about something like ``set proctitle USER'' ? I think it may also be useful to allow environment variable expansions too - something like ``set proctitle $CALLER_ID'' - solving the problem more generically. > Hi! > > How about logging CALLER_ID to the host field instead of CONNECT? > It looks more meaningful. Look: > > # w > 11:57 up 4 days, 12:03, 8 users, load averages: 0.58, 0.41, 0.24 > USER TTY FROM LOGIN@ IDLE WHAT > dakota c00 +02732231 11:55 1 ppp -direct > uupf17 c01 - 11:56 - - > dep05 c02 +02546701 11:51 - ppp -direct > ru p0 wks-1-250 ÓÒ 03ÐÐ - w > rost p1 rost ÓÒ 03ÐÐ 13 ftp rtuis.miem.edu.ru > rost p2 rost 10:21 1:27 ftp rtuis.miem.edu.ru > rost p3 rost 10:33 1:07 -tcsh (tcsh) > bill p4 wks-1-254 11:05 51 deco > > # last -tcuac00 > epi cuac00 +04933301 Thu Dec 31 10:53 - 10:54 (00:00) > parus cuac00 +02476691 Thu Dec 31 10:48 - 10:49 (00:00) > terhold cuac00 +02493761 Thu Dec 31 10:10 - 10:21 (00:10) > inkomplu cuac00 +02297181 Thu Dec 31 09:44 - 09:46 (00:02) > parus cuac00 +02476691 Thu Dec 31 09:19 - 09:20 (00:00) > parus cuac00 +02476691 Thu Dec 31 09:11 - 09:13 (00:01) > dakota cuac00 +02732231 Thu Dec 31 08:57 - 08:58 (00:00) > dakota cuac00 +02732231 Thu Dec 31 08:55 - 08:55 (00:00) > parus cuac00 +02476691 Thu Dec 31 08:43 - 08:44 (00:01) > steve cuac00 +02546681 Thu Dec 31 00:51 - 01:55 (01:04) > steve cuac00 +02546681 Thu Dec 31 00:46 - 00:50 (00:03) > sasha cuac00 +02719391 Thu Dec 31 00:10 - 00:42 (00:32) > sasha cuac00 +02719391 Wed Dec 30 23:12 - 00:08 (00:56) > sasha cuac00 +02719391 Wed Dec 30 22:49 - 22:53 (00:04) > sasha cuac00 +02749061 Wed Dec 30 21:44 - 21:49 (00:05) > sasha cuac00 +02749061 Wed Dec 30 21:24 - 21:41 (00:17) > sasha cuac00 +02749061 Wed Dec 30 21:14 - 21:21 (00:07) > sasha cuac00 +02719391 Wed Dec 30 20:18 - 20:36 (00:18) > sasha cuac00 +02719391 Wed Dec 30 20:08 - 20:10 (00:01) > > One-line patch is in attachment. > > BR, > -- > Ruslan Ermilov Sysadmin and DBA of the > ru@ucb.crimea.ua United Commercial Bank > +380.652.247.647 Simferopol, Ukraine > > http://www.FreeBSD.org The Power To Serve > http://www.oracle.com Enabling The Information Age > > --AqsLC8rIMeq19msA > Content-Type: text/plain; charset=us-ascii > Content-Disposition: attachment; filename="physical.c.diff" > > Index: physical.c > =================================================================== > RCS file: /usr/FreeBSD-CVS/src/usr.sbin/ppp/physical.c,v > retrieving revision 1.6 > diff -u -r1.6 physical.c > --- physical.c 1998/08/25 17:48:43 1.6 > +++ physical.c 1998/12/29 11:14:32 > @@ -196,7 +196,7 @@ > time(&ut.ut_time); > strncpy(ut.ut_name, name, sizeof ut.ut_name); > strncpy(ut.ut_line, phys->name.base, sizeof ut.ut_line); > - if ((connstr = getenv("CONNECT"))) > + if ((connstr = getenv("CALLER_ID"))) > /* mgetty sets this to the connection speed */ > strncpy(ut.ut_host, connstr, sizeof ut.ut_host); > ID0login(&ut); > > --AqsLC8rIMeq19msA-- > -- Brian , , Don't _EVER_ lose your sense of humour.... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message