This was Intended to be a BSD only blog, but now it's about all Unix Like Free Operating Systems, Linux, FreeBSD etc.
Friday, May 31, 2013
Wednesday, May 29, 2013
Monday, May 27, 2013
Saturday, May 25, 2013
Friday, May 24, 2013
Thursday, May 23, 2013
Thursday, May 16, 2013
Countdown Clock/Timer in /bin/bash
Often there is a need to have time between batch jobs. Knowing how much time there is between jobs is useful.
Here are two version.
Here are two version.
- One I found on unix.com here by cfajohnson. He claims it will work in any POSIX shell
- The other I (tc) wrote.
Version #1
# by cfajohnson countdown() ( IFS=: set -- $* secs=$(( ${1#0} * 3600 + ${2#0} * 60 + ${3#0} )) while [ $secs -gt 0 ] do sleep 1 & printf "\r%02d:%02d:%02d" $((secs/3600)) $(( (secs/60)%60)) $((secs%60)) secs=$(( $secs - 1 )) wait done echo ) countdown "00:07:55"
Version #2
# by teacup countSecondsDown() { seconds=$1 while [ $seconds -ge 0 ] do # you need the ampersand after sleep if you use wait. # because wait will wait for child process of sleep to complete. sleep 1 & printf "\r%d " $seconds seconds=$(( $seconds - 1 )) wait done echo } countSecondsDown 71
Wednesday, May 15, 2013
Sunday, May 12, 2013
Yahoo looking to break Microsoft Search Engine and Advertising Deal
Yahoo CEO's bid to end search-advertising deal with Microsoft 'flops'
http://www.bdlive.co.za/world/2013/05/09/yahoo-ceos-bid-to-end-search-advertising-deal-with-microsoft-flops
http://www.bdlive.co.za/world/2013/05/09/yahoo-ceos-bid-to-end-search-advertising-deal-with-microsoft-flops
Saturday, May 11, 2013
Friday, May 10, 2013
Wednesday, May 08, 2013
Facebook aims to knock Cisco down a peg with open network hardware | Ars Technica
Sent from my Android
Microsoft says its boxed software probably will be gone within a decade | PCWorld
Sent from my Android
Saturday, May 04, 2013
Subscribe to:
Posts (Atom)