• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can Linked list create a list of user log?

 
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 7
Eclipse IDE MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic