Home > Uncategorized > time over http (new version)

time over http (new version)

A new version of my time over http script (previous version was here).

#! /bin/shmyTime=`wget -O - http://free.timeanddate.com/clock/i6ttmn7/n195/tt0 \    | html2text -nobs | sed 's/_/ /g' | sed 's/,//g' | sed 's/at//g'`

echo current date is `date`

date `date -d "$myTime" +%m%d%H%M.%S`

hwclock --systohc --directisa
Advertisements
Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: