• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can Linked list create a list of user log?  RSS feed

 
jin Otanashi
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the title said it is possible to create linked list of user logging instead of using the last command in linux terminal?
 
vp reddy
Greenhorn
Posts: 7
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

May be this can work for you possibly.

1.Try to save the output of last to a file
2.Parse the file , using file api's of the language you are using(assuming java file i/o)
3.Extract unique user login information and save them to a List

Hope this helps
 
jin Otanashi
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
vp reddy wrote:Hello,

May be this can work for you possibly.

1.Try to save the output of last to a file
2.Parse the file , using file api's of the language you are using(assuming java file i/o)
3.Extract unique user login information and save them to a List

Hope this helps

I guess will try it but  I wonder what you mean by parse the file
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!