dwlerwill
Technical User
- May 25, 2001
- 329
Hi All
On our Unix platform we have a problem with users sat in some form queries and leaving themselves logged in when they go home. (Which is causing a few problems on our backend database)
Me being new to scripting am having a few problems working out where to start
What we need is to take a snapshot of all users system CPU usage time
kblades 17309 17308 0 Aug 14 pts/td 4:27 ./SSMM /users/kblades/kblades.bat,e
ckirman2 14381 14380 0 10:06:27 pts/tV 0:12 ./SSMM /users/ckirman2/ckirman2.bat,e
(Top example 4:27 bottom 0:12) and them 3 hours later take another snapshot and if the times are the same email the user a warning (The email bit is already done)
Anyone know a easy way to compare the 2 times for all the users on a system and store the ones with the same CPU time in a separate log file?
Cheers all
David Lerwill
"If at first you don't succeed go to the pub"
On our Unix platform we have a problem with users sat in some form queries and leaving themselves logged in when they go home. (Which is causing a few problems on our backend database)
Me being new to scripting am having a few problems working out where to start
What we need is to take a snapshot of all users system CPU usage time
kblades 17309 17308 0 Aug 14 pts/td 4:27 ./SSMM /users/kblades/kblades.bat,e
ckirman2 14381 14380 0 10:06:27 pts/tV 0:12 ./SSMM /users/ckirman2/ckirman2.bat,e
(Top example 4:27 bottom 0:12) and them 3 hours later take another snapshot and if the times are the same email the user a warning (The email bit is already done)
Anyone know a easy way to compare the 2 times for all the users on a system and store the ones with the same CPU time in a separate log file?
Cheers all
David Lerwill
"If at first you don't succeed go to the pub"