[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Date request
From: |
Richard Dawe |
Subject: |
Re: Date request |
Date: |
Sun, 02 Feb 2003 18:35:15 +0000 |
Hello.
Scott Baker wrote:
> Can I make a feature request for the "date" function... If I knew C I'd
> write it myself but I don't...
>
> An option for the date command to have it show the time, and then STAY
> running and update the time every 1 second. I want a "live" clock that I
> can run and watch to see what time it is. I have certain cron jobs that
> run every 5 minutes. If I had a clock program that would let me watch them
> it would make things easier. Just a request.
Try this:
while true; do sleep 1; date; done
If you use a shell other than sh, bash or ksh, you may need to use a different
syntax.
Regards,
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]