Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Jan 1999 22:23:11 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Ruslan Ermilov <ru@ucb.crimea.ua>
Cc:        Brian Somers <brian@Awfulhak.org>, FreeBSD Hackers <hackers@FreeBSD.ORG>
Subject:   Re: Proposed small change to ppp(8): CONNECT -> CALLER_ID 
Message-ID:  <199901052223.WAA57122@dev.lan.awfulhak.org>
In-Reply-To: Your message of "Thu, 31 Dec 1998 12:00:57 %2B0200." <19981231120057.A1164@ucb.crimea.ua> 

next in thread | previous in thread | raw e-mail | index | archive | help
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 <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
      <http://www.Awfulhak.org>;
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901052223.WAA57122>