CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 10 Aug 2025 15:02:40 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080508041626
location: https://web.archive.org/web/20080508041626/https://www.daniweb.com/code/snippet352.html
server-timing: captures_list;dur=0.880576, exclusion.robots;dur=0.039620, exclusion.robots.policy;dur=0.018942, esindex;dur=0.015702, cdx.remote;dur=76.762755, LoadShardBlock;dur=140.953984, PetaboxLoader3.datanode;dur=85.776192
x-app-server: wwwb-app204
x-ts: 302
x-tr: 252
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app204; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 10 Aug 2025 15:02:43 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Thu, 08 May 2008 04:16:26 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastactivity=0; expires=Fri, 08-May-2009 04:16:26 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 08 May 2008 04:16:26 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 28 Jun 2006 03:22:33 GMT", ; rel="prev memento"; datetime="Wed, 28 Jun 2006 03:22:33 GMT", ; rel="memento"; datetime="Thu, 08 May 2008 04:16:26 GMT", ; rel="next memento"; datetime="Sun, 01 Feb 2009 19:29:49 GMT", ; rel="last memento"; datetime="Mon, 27 Jul 2009 13:19:16 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_3_20080508035745_crawl104-c/52_3_20080508041506_crawl104.arc.gz
server-timing: captures_list;dur=0.960513, exclusion.robots;dur=0.030542, exclusion.robots.policy;dur=0.014871, esindex;dur=0.012760, cdx.remote;dur=2420.792067, LoadShardBlock;dur=221.462300, PetaboxLoader3.datanode;dur=266.012982, load_resource;dur=188.996164, PetaboxLoader3.resolve;dur=93.509699
x-app-server: wwwb-app204
x-ts: 200
x-tr: 2905
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
Colorful clock of Time - bash
Colorful clock of Time
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the Shell Scripting section within the Software Development category of DaniWeb, a massive community of 326,453 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,990 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Shell Scripting advertiser:
I know what your thinking, You and everyone else has always wanted a clock that sits at the top of your command prompt and tells you the time.
Why ?
I made this in first year when i spent countless hours programming and little in bed. I decided i needed somthing that told me all the things i needed to know in one easy location, the top of the screen.. So here it the pauls magical clock of sit on top of my screen.
Sorry about the lack of comments and meaningful varible names, its quite a hacked together little clock
Why ?
I made this in first year when i spent countless hours programming and little in bed. I decided i needed somthing that told me all the things i needed to know in one easy location, the top of the screen.. So here it the pauls magical clock of sit on top of my screen.
Sorry about the lack of comments and meaningful varible names, its quite a hacked together little clock
------------------------------------------------------ To use this --------------------------- Replace 2352318 with your userid (thats my user ID on the box at uni) add this to your ~/.bashrc ------------------------------------------------------------------------------------------------ clock=() { LENGTH_STRING=27; MAILEXISTS=`ls /var/mail | grep -c 2352318`; if [ $MAILEXISTS -eq "1" ]; then MSGCOUNT=`grep -c "From " $MAIL`; else MSGCOUNT=0; fi; col=`tput cols`; tput sc; tput cup 0 $(( $col - LENGTH_STRING )); echo -e -n "\033[1;36m"; echo -n " Mail:[$MSGCOUNT] ["; date +"%H:%M] [%e/%b]"; tput rc } PROMPT_COMMAND="clock"
Comments (Newest First)
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
- Today's Posts
- Unanswered Threads
Related Features
DANIWEB FEATURE INDEX
ADVERTISEMENT
STATISTICS