sj.constant...@gmail.com writes:
> i have a script running a few commands on a network device. i can't
> seem to figure out how to log both the input and output of what the
> pexpect script initiates and responds to.
>
> child = pexpect.spawn ('telnet '+ ip)
> child.expect ('.*:*')
> child.sendlin
On Thu, Aug 14, 2014 at 6:59 PM, wrote:
> i have a script running a few commands on a network device. i can't seem to
> figure out how to log both the input and output of what the pexpect script
> initiates and responds to.
>
> child = pexpect.spawn ('telnet '+ ip)
If that's not working for yo