LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Bash command to list users logged in at 5pm (https://www.linuxquestions.org/questions/linux-newbie-8/bash-command-to-list-users-logged-in-at-5pm-812768/)

F4U57 06-07-2010 09:03 PM

Bash command to list users logged in at 5pm
 
Hi, I need to figure out a bash command to list all users logged in at or after 5pm - 5pm being the specifier in the command.

The
Code:

# who
command seems to be the easiest way to display users but it specifies all users log times.

I've also fiddled with the lastlog command to no avail.

Any ideas?

kbp 06-07-2010 10:30 PM

Maybe 'last -t YYYYMMDDHHMMSS' .. ?

hth

F4U57 06-07-2010 10:37 PM

Thanks, I'll give ti a try


All times are GMT -5. The time now is 07:36 PM.