On Mon, 2003-08-18 at 22:13, anil garrepally wrote: > Hi all, > > I am using "expect" (TCL based) tool to automate some > activities. > By using "autoexpect", automating FTP activity, logging in to > server and getting a file from it and logging out from server. As > you know autoexpect is spawning another subshell for storing all > ftp commands, that part is working fine. > > while using that commands script,which was generated by autoexpect > it is giving problems.with that script, iam able to login and get > that file but after that failing to logout. That is halting at > that stage. > > In the man page of autoexpect, it says that "some scripts ignore > key strokes that arrive quickly", for that we need to enable > "conservative mode". I tried this option and also gave worst case > sleep in between command sendings of expect script. But failed to > "logout". > > If any one came across this problem or any one knows how to handle > this issue,please give me the information. >
while expect is a grand tool, this is one area that continues to frustrate me. I think that the solution is in the expect{} statement for that logout portion of the script. I cant remember specifically how I have dealt with that kind of problem, but try adjusting timeout variable prior to the logout expect{}. Also might have expect look for eof. The other possibility is that the session is closed prior to getting to the logout. Also set log_user to 1 to see all the output. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list