From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 16 May 2006 18:28:25 +0400 From: "Dmitry V. Levin" To: ALT Linux Sisyphus mailing list Message-ID: <20060516142825.GB6226@basalt.office.altlinux.org> Mail-Followup-To: ALT Linux Sisyphus mailing list References: <44610C3E.3020405@yandex.ru> <200605160027.31574.mak@cea.ru> <4468F4AE.3050102@yandex.ru> <200605160624.52690.mak@cea.ru> <44697968.50607@yandex.ru> <446989C4.4070304@altlinux.com> <20060516133942.GC32576@basalt.office.altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O5XBE6gyVG5Rl6Rj" Content-Disposition: inline In-Reply-To: X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [sisyphus] coreutils, who ) X-BeenThere: sisyphus@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 May 2006 14:28:26 -0000 Archived-At: List-Archive: List-Post: --O5XBE6gyVG5Rl6Rj Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 16, 2006 at 06:01:44PM +0400, Anton Farygin wrote: > Dmitry V. Levin wrote: > > On Tue, May 16, 2006 at 12:13:56PM +0400, Anton Farygin wrote: > >> =FC=D4=CF =CF=C2=D3=D5=D6=C4=C5=CE=C9=C5 =CE=C1=C4=CF =D0=C5=D2=C5=CE= =CF=D3=C9=D4=D8 =D7 bugzilla, =C9=C2=CF =D0=CF=DE=C5=CD=D5-=D4=CF =CD=C1=CE= =D4=C5=CA=CE=C5=D2=20 > >> coreutils =C5=C7=CF =D0=D2=CF=D0=D5=D3=CB=C1=C5=D4. > >=20 > > =ED=CF=D6=CE=CF =D3 =D3=C1=CD=CF=C7=CF =CE=C1=DE=C1=CC=C1 =C9 =D3=D2=C1= =DA=D5 =D7 =C4=C5=D4=C1=CC=D1=C8? >=20 > =F3 =D3=C1=CD=CF=C7=CF =CE=C1=DE=C1=CC=C1: >=20 > =D7 =D0=C1=CB=C5=D4=C5 powersave =CC=C5=D6=C9=D4 =D5=D4=C9=CC=C9=D4=C1 > /usr/lib/powersave/wttyhx, =CB=CF=D4=CF=D2=C1=D1 =C4=C5=D4=C5=CB=D4=C9=D4= =C7=C4=C5 =C9 =CB=C5=CD =C0=DA=C1=C0=D4=D3=D1 =C9=CB=D3=D9. >=20 > =E4=CF =CF=D0=D2=C5=C4=C5=CC=A3=CE=CE=CF=C7=CF =CD=CF=CD=C5=CE=D4=C1 =CF= =CE=C1 =D7=D9=D7=CF=C4=C9=CC=C1 =D0=CF=CC=D8=DA=CF=D7=C1=D4=C5=CC=D1 =C9 = =D4=C5=D2=CD=C9=CE=C1=CC=C1. =F0=CF=D3=CC=C5=20 > =CF=D0=D2=C5=C4=C5=CC=A3=CE=CE=CF=CA =D7=C5=D2=D3=C9=C9 coreutils - =D3= =D4=C1=CC=C1 =D7=D9=D7=CF=C4=C9=D4=D8=20 > #/usr/lib/powersave/wttyhx -a > root :0 >=20 > =D4.=C5. - =D7=D3=C5=C7=C4=C1 =D2=D5=D4=C1 >=20 > =C1=CC=C7=CF=D2=C9=D4=CD =D4=C1=CD =D0=D2=CF=D3=D4=CF=CA: > getuserfromwho() { > while read NAME DISP REST; do > test "$1" =3D "$DISP" && break > done < <(who) > echo "${NAME:--}" > } >=20 > =F4.=C5. - who =C9=DA coreutils =D0=C5=D2=C5=D3=D4=C1=CC =D0=D2=C5=C4=CF= =D3=D4=C1=D7=CC=D1=D4=D8 =C9=CE=C6=CF=D2=CD=C1=C3=C9=C0 =CF =D4=CF=CD, =CB= =D4=CF =C9=20 > =C7=C4=C5 =DA=C1=D0=D5=D3=D4=C9=CC =C9=CB=D3=D9. >=20 > =E1=D2=D4=A3=CD =D3=D2=C1=D7=CE=C9=CC =D7=D9=D7=CF=C4 =CF=D4 =C4=D7=D5=C8= =D2=C1=DA=CE=D9=C8 =D7=C5=D2=D3=C9=CA coreutils: > [user@sol src]$ ./who > root tty1 2006-05-09 18:36 (localhost) > user tty2 2006-05-15 15:40 (localhost) > user :0 2006-05-15 15:36 > root ??? 2006-05-09 20:07 (localhost) > user pts/3 2006-05-15 16:53 (:0.0) > user pts/5 2006-05-15 17:04 (:0.0) > user pts/12 2006-05-10 20:05 (:0.0) >=20 > =EE=CF=D7=D9=C5 ver 5.94 > [user@sol src]$ who > root tty1 2006-05-09 18:36 (localhost) > user tty2 2006-05-15 15:40 (localhost) > user pts/3 2006-05-15 16:53 (:0.0) > user pts/5 2006-05-15 17:04 (:0.0) >=20 > =F7 =D0=C5=D2=D7=CF=CD =D3=CC=D5=DE=C1=C5 wttyhx =D2=C1=C2=CF=D4=C1=C5=D4= , =D7=CF =D7=D4=CF=D2=CF=CD - =CE=C5=D4 =ED=CF=D6=C5=D4, who =D2=C1=CE=D8=DB=C5 =D2=C1=C2=CF=D4=C1=CC =CE=C5=D0=D2= =C1=D7=C9=CC=D8=CE=CF, =C1 =D3=C5=CA=DE=C1=D3 -- =D0=D2=C1=D7=C9=CC=D8=CE= =CF? =ED=CF=D6=C5=D4, wttyhx =D0=CF=CC=C1=C7=C1=C5=D4=D3=D1 =CE=C1 =CE=C5=D0=D2= =C1=D7=C9=CC=D8=CE=CF=C5 =D0=CF=D7=C5=C4=C5=CE=C9=C5 who? =FE=D4=CF =DC=D4=CF =DA=C1 wttyhx =C9 =CB=C1=CB =CF=CE=CF =D2=C1=C2=CF=D4= =C1=C5=D4? --=20 ldv --O5XBE6gyVG5Rl6Rj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFEaeGJfKvmrJ41Nh4RAqR2AJ9KXyA7IK380uQ/AHkv4bCY5YXeSQCgvdY/ Zlqv0S0sxYy4lI97Gyjd5m0= =6yWn -----END PGP SIGNATURE----- --O5XBE6gyVG5Rl6Rj--