My server should shutdown after 01:00 am, if there was no activity in the past hour.
Lets say there was the last connection at 00:43 then it should check again at 01:43.
How to write such a script/how to get last login time?
Based on ssh connection