Ignoring current sessions, and just displaying last time user logged in:
In general this is better achieved by keeping records in the user's home directory. This is because many administrators maintain the "wtmp" file (used by "last") to conserve disc space ... and if they don't maintain the file a "last" command on a "wtmp" file which is more than a year old can be misleading.
What OS are you using, and what makes you believe you know better than methyl or myself? Not mentioning you are going off topic (read again the very first post!)...
-w is non UNIX standard... (nor did I find in standard linux, HP-UX, or open solaris, or MacOSX (up to 10.5.6)) so unless the thread owner states what OS he is using, the rules here is to stick to pure standard UNIX solutions, this is not the first time you go on and on on pointless argument so please stop unless you are sure to add a real plus here.
Last edited by vbe; 01-17-2012 at 06:22 PM..
Can anyone please tell me how can i check the availability of the online user in a client-server environtment.
This is for a program where lakhs of client are connected to the server and the server has to check the availability of the every client in every minute.
So polling every client... (0 Replies)