Thanks for your suggestions.

I have sorted the issue as follows:

import pexpect
child = pexpect.spawn('./opac')
child.sendline('opac')

This works!!!
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to