I have a media PC (that is also a web test server on the LAN) that I want to reboot every so often as long as it is not in use. I have tests in place for the server using kodi, myth etc (its the display for kodi as well), however, I need to test if anything is using it over the network (file copying, developing websites, watching something etc).
I figure the easiest way to do this is find out how much data has been transferred over the network in the last 3mins or so. How can I do this from a bash script (.sh file run by cron)?