Skip to content
Advertisement

Tag: pexpect

Pexpect inserts ‘/r/n’ into sendline()

I am using pexpect to automate running a C program in a zsh terminal on Ubuntu 20.04. The program in question is a spectrum convertor: http://www.np.ph.bham.ac.uk/research_resources/programs/spec_conv/spec_conv.c I have this installed and in my path. I can not run ‘spec_conv’ in my terminal and the program runs correctly. When the program starts there is an initial set of options (0-9). I

Advertisement