starting script when user login or loged out (PPPoE)

hello it is possible to start scrips on this kind of events
i try to search some info but i failed =(

Please give me some new ideas =)

it must insert script in the schedule to check if pppoe login or logout each 1min or 2 as wish

search for script you want in the forum and insert in schedule