To get started, send here:
Using who -sgives you login time for users who are currently logged in. The link above uses a 5 minute threshold to filter the list, but you can change it to 1 minute.
script, , 60 while , , cron, ( script ).
, script.
, , script, .