Portál AbcLinuxu, 23. dubna 2024 20:52
[507] # who tranceli :0 Sep 30 14:45 tranceli pts/0 Sep 30 14:45 tranceli pts/2 Oct 1 17:57 (:pts/1:S.0) tranceli pts/3 Oct 1 17:57 (:pts/1:S.1) tranceli pts/4 Sep 30 14:46 (:pts/1:S.2) tranceli pts/5 Sep 30 14:46 (:pts/1:S.3) tranceli pts/6 Oct 1 17:58 (:pts/1:S.4) ayla pts/9 Sep 28 11:34 (ayla.sytes.net)Jde nějak
who
přimět, aby tiskl širší sloupce (alespoň u jména) ?? Něco mi tam chybí :o)
/* Print formatted output line. Uses mostly arbitrary field sizes, ...
@@ -273,7 +273,7 @@ *x_exitstr = '\0'; err = asprintf (&buf, - "%-8.9s" + "%-8.8s" "%s" " %-12s" " %-12s":)) kam se hrabe stará osmiznakovka...
<thingwath@ethelred> ~ $ who thingwat :0 Oct 1 12:13 thingwat pts/0 Oct 1 12:14 (:0.0) thingwat pts/1 Oct 1 12:14 (:0.0) thingwat pts/2 Oct 1 12:14 (:0.0)
root@seidann ~ [ 50MB 13.78-7x 3.21d | 1/99 1.67 ] [515] # who trancelis :0 Sep 30 14:45 trancelis pts/0 Sep 30 14:45 trancelis pts/2 Oct 1 17:57 (:pts/1:S.0) trancelis pts/3 Oct 1 17:57 (:pts/1:S.1)(a příště volím 8-znakové jméno :)
CONSOLEFONT="lat2-16"... a nepomohlo by to, na fontu vůbec nezáleží, leda tak na COLUMNS, ale v tomhle případě to je na tvrdo zapsaný ve zdroji
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.