You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: