shiv_softengg
27th March 2008, 13:22
Dear Users ,

I am attaching one UNIX Script Which will genrate a report in such manner so you will have information that how many ( and which) sessions are being used by which user.

You may need to change it according to your env. but i feel its worth full to you guys.

Regards
Shiv:)

triton45
15th April 2008, 21:26
Great script - I have been using a similar one for a while, but I have a problem when the unix user and baan user are not the same.

Just a suggestion to help with performance of your script, combine the multiple grep -v statements into 1

ex: cat users | grep -v bsp | grep -v kiosk | grep -v root| awk -F"." '{print $2}' > ./user_pid

changed to: grep -vE "bsp|kiosk|root" users| awk -F"." '{print $2}' > ./user_pid

Andy