last: please review -F and --time-format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

IMO -F and --time-format=xxx need some review/cleanup regarding
logout times "still running" and "gone - no logout".

Is there any reason why -F and --time-format=full
look different? --time-format=notime looks ugly too.

See the all the cases here: 
------------
for opt in -F --time-format=full --time-format=iso --time-format=short --time-format=notime; do
    echo "### $opt ###"
    ./last  -f ../tests/ts/last/wtmp.LE  $opt  | grep "running\| no logout"
done

### -F ###
torvalds linux        hobby            Mon Aug 26 02:57:08 1991   gone - no logout
reboot   system boot  system-name      Wed Aug 28 20:00:00 2013   still running
### --time-format=full ###
torvalds linux        hobby            Mon Aug 26 02:57:08 1991    gone                    - no logout
reboot   system boot  system-name      Wed Aug 28 20:00:00 2013   still                    running
### --time-format=iso ###
torvalds linux        hobby            1991-08-26T02:57:08+0200   gone - no logout
reboot   system boot  system-name      2013-08-28T20:00:00+0200   still running
### --time-format=short ###
torvalds linux        hobby            Mon Aug 26 02:57    gone - no logout
reboot   system boot  system-name      Wed Aug 28 20:00   still running
### --time-format=notime ###
torvalds linux        hobby              - no logout
reboot   system boot  system-name        running
------------


cu,
Rudi
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux