By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,907 Members | 1,932 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,907 IT Pros & Developers. It's quick & easy.

sending control+c using pexpect

P: 20
I need to send control+C after sending a particular command on my ssh session. How do I achieve this using Python 2.3 with pexpect?

I tried using conn_handle.sendline(chr(3)), but that doesn't seem to work.

Any pointers?

Thanks.
May 21 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.