I am attempting to create script that sends info and login/logoff timestamps to a text file. Can anyone assist with showing me how to get it to output the duration between login and logoff? AT the moment the script creates a separate line for each login and logoff. I can't seem to figure out on to get them all on one line in the text file. Any help would be appreciated.
ghostin
0
Newbie Poster
Recommended Answers
Jump to PostHi
Do you have access to a Database? If so store the login records with a timestamp and when the user logs out retrieve this record and get the time difference between the stamp and current time.If not store your logins in another file and parse it from …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.