home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mips / 874 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.sys.mips
  2. Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!math.fu-berlin.de!informatik.tu-muenchen.de!LRZnews!k2
  3. From: k2@bl.physik.tu-muenchen.de (Klaus Steinberger)
  4. Subject: Re: Purpose of /dev/tty ??
  5. Message-ID: <k2.713778798@woodstock>
  6. Keywords: /dev/tty
  7. Sender: news@news.lrz-muenchen.de (Mr. News)
  8. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  9. References: <1992Aug13.075420.15847@fawlty.towers.oz.au>
  10. Date: Fri, 14 Aug 1992 07:53:18 GMT
  11. Lines: 28
  12.  
  13. stuart@fawlty.towers.oz.au (Stuart Walker) writes:
  14.  
  15. >I have just been having some fun and games trying to run multivol from within
  16. >a cron command.  I know that multivol is no longer required for cpio over
  17. >multiple volumes, but, for historical reasons, we must continue with this
  18. >command in the short term.  Anyway...
  19.  
  20. >The problem is that when run from cron, it is unable to open /dev/tty.
  21. >Now I have managed to get around this by recreating /dev/tty to have the
  22. >same major and minor device numbers as /dev/console.
  23.  
  24. >Could someone please inform me as to the purpose of /dev/tty, and whether
  25. >my method of getting around the problem is safe ??
  26. No, you will kill off many other software.
  27.  
  28. >Is /dev/tty left over from the days when a teletype hung off the system
  29. >printing out various messages ??
  30. /dev/tty is the controlling tty of your job. E.g. try "cp somefile /dev/tty"
  31. on your screen. With your workaround, the output goes to the console 
  32. instead of the users screen. That wipes out many many programs.
  33.  
  34. Sincerely,
  35. Klaus Steinberger
  36. --
  37. Klaus Steinberger               Beschleunigerlabor der TU und LMU Muenchen
  38. Phone: (+49 89)3209 4287        Hochschulgelaende
  39. FAX:   (+49 89)3209 4280        D-8046 Garching, Germany
  40. Internet: Klaus.Steinberger@bl.physik.uni-muenchen.de
  41.