Jump to content
EduGeek EdSec 2026 is Go! 27th Oct in Derby! Join us for a day of EdTech security focused talks, networking, and an evening social ×

Compare two files and display unique files


Recommended Posts

Posted

In response to my post about displaying free computers - I'm thinking of making one.

 

Does anybody have a script which will open two text files and show which ones are unique values? Or know how to do it? I no good with Vb/or powershell which i think are what i would need to use.

 

basicly looking for something which can show me where users are logged in.

 

So login script writes %username% and %computer% to loggedin.txt

 

then logout script writes %username% and %computer% to loggedout.txt

 

then every 5 mins script runs which compares loggedin.txt and loggedout.txt and outputs to computersinuse.txt the username and computer name of the unique records from both - i.e people who have not logged out.

 

I can then do then import to the database and get php to display it nicely.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...