Being on time

I hate:

  • receiving e-mail from the future
  • having a make being lost
  • having messy CVS log

I love having my PC clock being perfectly set.

The problem is that I’am behind an http proxy. I first thought to tunnel a NTP traffic (which is UDP) into a TCP tunnel using netcat and wrap this TCP into a ssh tunnel through an HTTP tunnel. Lost ? No matter because there is a really easier way to do this:

#! /bin/sh
myTime=`wget --proxy-passwd=$proxy_passwd -O -| \   grep "Current time" | awk '{ print $8 $9 }'`
date `date -d "$myTime" +%m%d%H%M.%S`