On Tue, Jan 15, 2008 at 07:22:13PM -0800, Felix T. Gomez, Jr. wrote:
> Hi,
> 
> Thanks for the reply. I am satisfied with the who
> command. Let me put it to the higher level. 
> 
> I hope somebody can guide me as to how can I get the
> information from WHO command then put it in my
> database?
> 
> Can anybody give me pieces here, pieces there so that
> I can form a program for that purpose?

Shame on you top posting Felix, I thought you knew better.  :)

There is also the command, last   That might help you.  Also, the w,
(yeah, just w, like the first letter of who) that gives a bit more
detailed information. )

w is like who but gives more information.  Last is used with a username,
e.g., 
last scottro

gives me

scottro          ttyp0    :0.0             Tue Jan  1 12:51 - 17:05
(04:13)

as well as all my other sessions. 



I'm not familiar with the Linux man pages for any of the three commands,
but I would say, as I do whenever a Linux man page is suggested, that if
the page doesn't really help, then go to openbsd.org and check their man
page.  

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Buffy: You know, for someone who teaches human behavior, you 
might try showing some. 
Professor Walsh:It's not my job to coddle my students. 
Buffy: You're right. A human being in pain has nothing to do with 
your job. (leaves) 
Professor Walsh: I like her. 
Riley: Really? You don't think she's a little peculiar? 



To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to