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