Being on time
January 28, 2006
1 comment
I hate:
- receiving e-mail from the future
- having a
makebeing 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 - http://www.timeanddate.com/worldclock/city.html?n=195| \ grep "Current time" | awk '{ print $8 $9 }'` date `date -d "$myTime" +%m%d%H%M.%S`
Categories: Uncategorized
ntp