Changed the pinger function to use the subprocess wait command and store data into a buffer rather than write to a file. This resolves issues with running on a multi-user server