We have just changed to a new ISP who is part of the Federally Funded Clever Networks scheme. We have been connected to the service for just 3 days and in that time, we have gone down 6 or more times - some instances would not have been noticed. We pay a high price for this service which is faster in both directions than anything Telstra or others can supply. We can get 40Mb each way but can only afford 4Mb each way. We run a mission critical web server running Moodle which our students use as an on line Learning Management System. With exams upon us, we can ill afford to be off the air.
I was wanting to log the uptime somehow (and consequently the down time) and thought the easiest method would be to run something like "ping -i 600 XXX.XXX.XXX.XXX >> Logfile.txt" running backgrounded on a server I have at home. This works fine but I would love to be able to date & time stamp each line. The -T option does not seem to do what I want to do and as my coding is limited (read almost none existent), I rely on command line routines. Is there a better way? If I am on the right track, can someone offer a suggestion as to how I can append the time/date stamp to each output line or even insert an hourly stamp in between lines? Thanks in advance. Rick Phillips -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
