home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / wizards / 4804 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.5 KB

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