home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v5 / text0013.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  1.2 KB

  1. From: ukc!minster!forsyth
  2. Date: Thu, 9 Jan 86 18:03:15 GMT
  3.  
  4. It can be helpful for TZ to be a per-process value (eg, in the
  5. environment).  For instance, if I am logged in to a computer
  6. several time zones away, with TZ set to reflect my local time,
  7. I might say
  8.  
  9.     echo "echo go to the pub | write $NAME" | at 7pm
  10.  
  11. to get a message at 7pm my time, or (in the same session)
  12.  
  13.     TZ= at 3am <ada-testrun
  14.  
  15. to cause a long-running job to be started on the remote
  16. system at a little-used time (their time).
  17.  
  18. Similarly, I might set TERM per process if I wish
  19. to check the output of a supposedly terminal-independent
  20. program for different terminal types:
  21.     TERM=vt100 greeneking | vis
  22.     TERM=520 greeneking | vis
  23.     ...
  24. I might do something similar if running emulators in
  25. different layers, though arguably that might be handled
  26. by the ``per port'' notion.  (Although /etc/ttytype or
  27. whatever is hard pressed to deal with people logging
  28. in on different terminals on the same network or dial-in
  29. port.)
  30.  
  31. There are other ways of doing these things,
  32. but I find this compositional style more attractive
  33. than, say, -l (local time) or -z (time zone) options
  34. to `at' and other commands.
  35. I'd be interested to see other approaches.
  36.  
  37. Volume-Number: Volume 5, Number 14
  38.  
  39.