From: Roland G. <RGi...@cp...> - 2004-05-28 16:07:38
|
> Note that if I ran it from the command-line (real tty) it ran fine. Yes, thats one thing that is still baffling me. You see, I modelled the pty allocation code mostly after sshd, so it should work to capture even /dev/tty of the spawned process, but it sometimes (on some systems, as a daemon, without a user tty) doesn't. Unfortunately, sshd runs as root, so it can do some things that normal processes cannot do, and I left out those things (if I remember correctly, it has been a while). And pty allocation *is* black magic, very heavy black magic indeed. So, the short answer is: sorry, I don't know why it doesn't work. And that's the reason why I always ask people if there is a way to solve the problem without using Expect, using ssh/scp/ncftp/Net::Telnet etc. instead... Roland |