python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
wexpect equivalent for logging
I have the following codes using pexpect in linux it is ok.
import pexpect
child = pexpect.spawn('ssh test@ip' % (susername, ip) , encoding='utf-8')
child.logfile = open("{}/{}.txt".format...
Andy
Votes: 0
Answers: 1
Python fdpexpect with multiple expects
Testing the simple example that should execute the external application and catch both inputs there.
# external_application.py
print('First_line:')
x = input()
print('Second_line:')
y = input()
prin...

IgorZ
Votes: 0
Answers: 1