> 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.