From: Ed A. <er...@uc...> - 2003-09-15 22:19:10
|
I gathered from your explanation that your expect-perl program wasn't working in daemon mode because it expects to have a controlling tty (i.e. "/dev/tty") to write to. I'm assuming that you're running in daemon mode such that your controlling tty is undefined; i.e. if you did a "ps -ef" (or whatever's appropriate for your system), the "TTY" columns for your daemon process would contain '?'. So maybe (and this is iffy, given the weird things ssh does under the covers) if you move the unusable /dev/tty out of the way and create /dev/tty as an ordinary file your program can write to, things will work. Unfortunately this will require root permission, since /dev/tty is root-owned (at least on Redhat and Solaris). > Hi. > > I'm sorry. I don't quite understand how this would help. > It sounds interesting. Please explain more. > > Thanks, > -Chris Muth > > > On 9/15/03 at 1:26 PM Ed Arnold wrote: > > >Have you tried an ugly hack? Do something like "mv /dev/tty > >/dev/tty.bak" > >(very temporarily!), then make /dev/tty a regular file which programs that > >require tty, can scribble into. > > > >Disclaimer: I've only used this hack for input. Your mileage may vary. > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Expectperl-discuss mailing list > Exp...@li... > https://lists.sourceforge.net/lists/listinfo/expectperl-discuss |