I have a development env. with 4 users, I want to be able to log their time logged in since they are contractor working from home.
I have NO idea how to do it, my sys admin left me this weekend and I am lost here. I want to be able to run a script or a command for the first login only, per day. and if possible when they log out.
today @ 8am user1 log in: execute a command /path/command.sh today @ 9am user2 log in: execute a command /path/command.sh today @ 2pm user1 logout today @ 3pm user1 login: do nothing today @ 4pm user1 login (second shell window): do nothing etc...
I think I can use the .profile file but i am not sure thanks
running on ubuntu server 12.04