wexpect icon indicating copy to clipboard operation
wexpect copied to clipboard

wexpect.spawn(echo=False) is not work and setecho(False) is raise the "AttributeError: 'SpawnPipe' object has no attribute 'setecho'" exception.

Open nhtha opened this issue 10 months ago • 0 comments

Dear experts, I'm starting to use wexpect to interact with putty's plink.exe. but I'm facing the following issue with echo:

Describe the bug wexpect.spawn(echo=False) is not work and setecho(False) is raise the "AttributeError: 'SpawnPipe' object has no attribute 'setecho'" exception.

To Reproduce Steps to reproduce the behavior: ssh = wexpect.spawn(command='plink.exe', timeout=60, maxread=99999, echo=False) ssh.setecho(False)

Expected behavior Texts were sent by sendline() are not include in the ssh.before.

Screenshots image

Environment:

  • [windows version] Windows 11 Pro for Workstation 23H2
  • [Python version] 3.10.8
  • [wexpect version] 4.0
  • [putty plink version] Release 0.80

Please help me to identify and solve this issue. Best regards, Ha Nguyen

nhtha avatar Apr 04 '24 22:04 nhtha