Rubin,

You ol' shell dawg...

The watch command is very cool.


Regards,

Flint

On Fri, 13 Feb 2009, Rubin Bennett wrote:

Date: Fri, 13 Feb 2009 12:27:48 -0500
From: Rubin Bennett <[email protected]>
Reply-To: Vermont Area Group of Unix Enthusiasts <[email protected]>
To: [email protected]
Subject: Re: Fwd: [uug] Happy 1234567890 Day!

On Fri, 2009-02-13 at 10:22 -0700, Alvin ONeal wrote:
So heres an interesting tidbit for you all, in case you didn't hear.
Unix time will be hitting 1234567890 at 4:31:30 (MST) today. 0
corresponds to Jan. 1st 1970. It's nothing important other than
interesting.

watch -n 1 date +%s

watch -n 1 'd=$(date +%s); o=$((1234567890 - ${d})); echo "now=${d};
remaining=${o}"'
<sjansen> watch -n 1 'd=$(date +%s); r=$((1234567890 - $d)); h=$(($r /
3600)); s=$(($r - $h * 3600)); m=$(($s / 60)); s=$(($s - $m * 60));
printf "%10d\n%10d\n%02d:%02d:%02d" "$d" "$r" "$h" "$m" "$s"'

AJ, you've taught me a new command... watch.  Thanks!  I've fulfilled
my "learn something new every day" requirement for today.

Rubin
--
Rubin Bennett
rbTechnologies, LLC
80 Carleton Boulevard
East Montpelier, VT 05651

(802)223-4448
http://thatitguy.com

"Think for yourselves and let others enjoy the privilege to do so too."
 Voltaire, Essay on Tolerance
 French author, humanist, rationalist, & satirist (1694 - 1778)


Kindest Regards,



Paul Flint
(802) 479-2360


/************************************
Based upon email reliability concerns,
please send an acknowledgment in response to this note.

Paul Flint
Barre Open Systems Institute
17 Averill Street
Barre, VT
05641

http://www.bosivt.org
http://www.flint.com/home
skype: flintinfotech
Work: (202) 537-0480
 Fax: (703) 852-7089

Consilium
gratuitum        .~.
valet            /V\
quanti          /( )\
numerantur      ^^-^^

Reply via email to