Re: [tkined] Expect weirdness

Christopher Akritides (foris@ans.net)
Mon, 20 Apr 1998 13:36:45 -0400 (EDT)

I've tried the -n option and I've tried using a different script to start
the daemon. Nothing works. I'd rather not use TclX, as we will have to
first install it on a lot of equipment.

Is this a bug in the Expect disconnect command?

On Sat, 18 Apr 1998, Doug Hughes wrote:

>
> On Sat, 18 Apr 1998, Christopher Akritides wrote:
>
> > I have been trying to write a daemon in Tcl, using the Expect fork
> > command. At the very beginning, I do a fork and the parent exits, while
> > the child does a disconnect and goes on. When I execute the script from a
> > kshell, everything works fine. But when I try to do it from a remote
> > shell, the command doesn't returns. For some reason, the parent becomes a
> > Has anyone seen this before? Is there an easy way around this problem?
> >
>
> Just a hunch, but have you tried your remote shell with the -n option
> so that the child (in this case your expect program) isn't trying to
> attach itself to nonexistant input on stdin?
>
> Also, you might try the fork/exec incantation in TclX to see if it
> works better.
>
> ____________________________________________________________________________
> Doug Hughes Engineering Network Services
> System/Net Admin Auburn University
> doug@eng.auburn.edu
> --
> !! This message is brought to you via the `tkined & scotty' mailing list.
> !! Please do not reply to this message to unsubscribe. To subscribe or
> !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
> !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.
>

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.