home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!ub!acsu.buffalo.edu!sivap-s
- From: sivap-s@acsu.buffalo.edu (Suresh .S)
- Newsgroups: comp.unix.wizards
- Subject: Re: resident clock under vt100?
- Message-ID: <Bxznsy.4Bu@acsu.buffalo.edu>
- Date: 20 Nov 92 00:24:33 GMT
- References: <1992Nov19.190437.25356@blaze.cs.jhu.edu>
- Sender: nntp@acsu.buffalo.edu
- Organization: UB
- Lines: 30
- Nntp-Posting-Host: hadar.cs.buffalo.edu
- X-Newsreader: TIN [version 1.1 PL6]
-
- The Skateboard Dude (schles@whatever.cs.jhu.edu) wrote:
- : Hi. In our library here at JHU, we have vt100 terminals connected to the
- : campus network. One time while I was working on homework, I realized I didn't
- : have my watch on. So I logged into my CS account and used the 'date' command
- : to keep me informed about the time.
- :
- : The problem was I was constantly typing in 'date' to check the time. Is there
- : a command or program similar to TSR's on IBM's which could constantly keep me
-
- If you are using 'tcsh' do this
-
- set prompt = "%m:%S[%T]%s:$cwd:>"
-
- This will highlight the time, and will get updated everytime you hit a
- return.
-
- If you are 'csh' do this
-
- set prompt = "`date | cut -d' ' -f4`:$cwd:t:>"
-
- This will give the time which will get updated everytime you hit a
- return.
-
- If you are in any other shell you have look up the appropriate command
- that sets the prompt.
-
- --
- Suresh Sivaprakasam
- Department of Computer Science, SUNY Buffalo, Amherst, NY - 14260-0001
- Internet :sivap-s@cs.Buffalo.EDU Bitnet : sivap-s@SUNYBCS.BITNET
-