Microsoft
Software
Hardware
Network
Question : Scripting help using LAST command
I'm trying to write a script that will output the login information for the last week (7 days). It doesn't look like there are too many options for this using the built-in switches with LAST. Was thinking I would probably have to GREP the output I receive but how would you specify to go back 7 days. I think it would especially get confusing when you are at the begining of the month and your 7 day query would flow into the previous month. Any help would be appreciated.
Thanks
Answer : Scripting help using LAST command
It's a filter:
last | script.pl
where script.pl is the name of the above script.
Random Solutions
How would I output to CString instead of using stringstream ss?
Physical wiring for hot stand-by
Understanding why there are no $_POST["myvar"] and how this works on linux but not on windows?
Alter Table Alter Constraint
Google Maps API: how to calculate distance from a location to a ZIP code?
VB .Net 2008 Express Deploy Application
XP Start Menu: Does not respond to Mouse - Sometimes
Implement cell forumula border feature
Cannot connect to the Citrix XenApp Server. There is no Citrix SSL Server configured on the specified address.
Bookmark page javascript. Add to favorites script