I am having issues with pexpect detecting "$" of the Linux command prompt. To give a better picture of what I am trying to accomplish:
Example Command Line prompt that I want to trigger my pexpect:
testcomp@testcomp-desktop:~$
Example of my pexpect code to detect it:
child.expect(['$',pexpect.TIMEOUT])
What results from this after testing it is that it chooses pexpect.TIMEOUT even though the prompt is there. I have also tried a couple of different variations of "$" like "\$" and "~$"
$matches the end of a line when parsed as a regex; it doesn't match a dollar sign.[$]should work; whether\$does depends on what kind of string you put it in.childby spawning something likebash -l -i)