From: Ken I. <fn...@ua...> - 2006-07-13 20:15:37
|
On Thu, Jul 13, 2006 at 10:52:46AM -0700, Austin Schutz wrote: > On Thu, Jul 13, 2006 at 12:16:10AM -0800, Ken Irving wrote: > > On Wed, Jul 12, 2006 at 12:27:44PM -0800, Ken Irving wrote: > > > I'm flailing with an error message that occurs following the interact() > > > method: > > > ... > > > > I guess it's a warning, showing up due to the -w flag: > > > > $ perl -MExpect -w -e 'Expect->new()->interact();' < /dev/null > > handle id(5) is not a tty. Not changing mode at /usr/share/perl5/Expect.pm line 376. > > handle id(5) is not a tty. Not changing mode at /usr/share/perl5/Expect.pm line 376. > > handle id(5) is not a tty. Not changing mode at /usr/share/perl5/Expect.pm line 376. > > > > but not without it. > > > > iirc (and this has been several years) it's necessary to make sure > ttys aren't echoing at each other when they interact, thus by default the > echoing mode is changed when this occurs. This obviously won't work if you > throw something other than a tty at it. > It's probably safe to just turn warnings off around that block if the > code is otherwise working. It's probably a reasonable warning to have. There > may be cases where you expect to be working with a tty but aren't (script > called from cron, etc.). I can do that, but I get the same warnings even if I run the above command from a tty, or at least from a linux console, in addition to an xterm. Presumably there's something else that needs to be done, but I don't know what it is. Is the message meaningful? Thanks, Ken -- Ken Irving, fn...@ua... |