The Scheduled Task feature only allows a process to be run every one minute. I can't tell for sure but the at command looks to be the same. I will agree with the above comments that pinging every 5 seconds could degrade network performance if the server is critial enoungh to need to be checked so often.