Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when SSH session is slow and execute a command and gets previous output for current expect #56

Open
mervinnirmaljohn opened this issue Sep 3, 2018 · 2 comments

Comments

@mervinnirmaljohn
Copy link

Hi Alexey,
I see the below issue while using Expect-it library.
Note: Linux machine is responding little slow.

#############################################
[mjohn@unix] $ ls -l [Command1]
output 1:
total 88
drwx------ 2 mjohn users1 4096 Apr 18 16:31 Desktop
drwxr-xr-x 3 mjohn users1 4096 Jun 6 2017 Downloads
drwxr-xr-x 2 mjohn users1 4096 Apr 10 2017 Music
drwxr-xr-x 2 mjohn users1 4096 Apr 10 2017 Pictures
drwxr-xr-x 2 mjohn users1 4096 Apr 10 2017 Public
drwxr-xr-x 2 mjohn users1 4096 Apr 10 2017 Templates

[mjohn@unix] $pwd [Command2]
output 2:
/root/mjohn
#############################################
when i execute

expect.sendLine(Command1);
expect.expect(regexp("$"));
check in console -> partial content of output 1
expect.sendLine(Command2);
expect.expect(regexp("$"));
check in console -> remaining content of output 1

@mervinnirmaljohn mervinnirmaljohn changed the title Issue when SSH session is slow and consider previous output for current expect. Issue when SSH session is slow and execute a command and gets previous output for current expect Sep 3, 2018
@golimarrrr
Copy link

What timeout is yout ExpectIt instance configured to?

@VinodhiniNagaraj
Copy link

Hi Alexey,
ExpectIt instance configured with timeout of (600000 milliseconds /10 Mins)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants