Poor man’s NTP
Yesterday I had to quickly (more or less) synchronize the clocks of a handful of computers I was working on. I didn’t have the time to work out an NTP based solution, so I came up with the following simple trick:
for i in `seq 1 6`
do
ssh root@192.168.1.20${i} date `date +%m%d%H%M%Y.%S`
done
Needless to say… it worked. :-)
Posted in Open Source Adventures, scripting No Comments »