home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!darwin.sura.net!jvnc.net!gmd.de!Germany.EU.net!mcsun!sunic!dkuug!uts!id.dth.dk!ej
- From: ej@id.dth.dk (Erik Johansen)
- Newsgroups: comp.lang.perl
- Subject: How do I make 'stty -echo' work from a net service
- Message-ID: <1992Jul29.073546.4419@id.dth.dk>
- Date: 29 Jul 92 07:35:46 GMT
- Organization: Department of Computer Science
- Lines: 19
-
- In a perl program I need to request a username without
- echoing it. This works fine when I am running it from a shell.
-
- I intend to run it from a tcp net service (/etc/services) but
- here it will not disable echoing ("Not a tty").
-
- I suppose that solving the above problem involves creating a pty
- but I do not know how to do it.
-
- Any ideas of how to code this ?
-
-
- ---
- $txt=" ltrterhnuc--sor eep-\nkJ.a "; srand(53747414);
- for (1..26) { print substr($txt,rand 27,1); } ### Is this a random write ?
- --
- ---
- Erik Johansen E-mail: ej@id.dth.dk
- Institute for Computer Science, Copenhagen, Denmark
-