Comments on: Period Pain part 2 http://www.stdlib.net/~colmmacc/2009/09/27/period-pain-part-2/ An Irishman's Fiery Tue, 17 May 2011 19:12:51 +0000 hourly 1 http://wordpress.org/?v=3.3.1 By: /~colmmacc/ » Period Pain 3 http://www.stdlib.net/~colmmacc/2009/09/27/period-pain-part-2/comment-page-1/#comment-317886 /~colmmacc/ » Period Pain 3 Thu, 26 Nov 2009 22:54:41 +0000 http://www.stdlib.net/~colmmacc/?p=517#comment-317886 [...] promised, though it’s been a while coming, I wrote that there’d be a followup on scheduling periodic [...] [...] promised, though it’s been a while coming, I wrote that there’d be a followup on scheduling periodic [...]

]]>
By: dwmalone http://www.stdlib.net/~colmmacc/2009/09/27/period-pain-part-2/comment-page-1/#comment-313499 dwmalone Tue, 29 Sep 2009 19:19:00 +0000 http://www.stdlib.net/~colmmacc/?p=517#comment-313499 Note that bash chewed your 128 bit number - the result in decimal had fewer digits than the one in hex. I think 0xd32227ed9a3bf7d8714590f837884286 is actually 280644455042589680170892351931054310022. Note that bash chewed your 128 bit number – the result in decimal had fewer digits than the one in hex. I think 0xd32227ed9a3bf7d8714590f837884286 is actually 280644455042589680170892351931054310022.

]]>
By: pixelbeat http://www.stdlib.net/~colmmacc/2009/09/27/period-pain-part-2/comment-page-1/#comment-313326 pixelbeat Sun, 27 Sep 2009 23:41:33 +0000 http://www.stdlib.net/~colmmacc/?p=517#comment-313326 Note $(( 128to_signed_64bit )) is done by all shells Also you need to strip the ':'. Doing as 1 cmd: echo $(( 0x$(/sbin/ifconfig | sed -n 's/://g;s/.*HWaddr \(.*\)/\1/p;T;q') % 1000 )) | sed 's/^-//' Note $(( 128to_signed_64bit )) is done by all shells

Also you need to strip the ‘:’. Doing as 1 cmd:

echo $(( 0x$(/sbin/ifconfig | sed -n ‘s/://g;s/.*HWaddr \(.*\)/\1/p;T;q’) % 1000 )) | sed ‘s/^-//’

]]>