Score:0

Automating visual tasks

ph flag

How can I automate task's which need a display to run , eg: ncmpcpp . I am using python to do this but the error is as follows Error opening terminal: unknown.\r. Is there any other means I can do it ? I am using a module called pexpect in python to do this. And I don't want the terminal window to open . An eg of the automation can be that, ncmpcc opens its playlist which is done by pressing 2 and then getting the result as stoud or a log file.

As I am using python to do it. I am using a module called pexpect to do it. The code is pretty simple .

import pexpect

child = pexpect.spawn("ncmpcpp")
# time.sleep(2)
# child.sendline("q")
print(child.read())

But when I run the error comes

MrHola21 avatar
ph flag
@Nmath I updated the question
Nmath avatar
ng flag
It is still unclear. You should provide more context. A standalone error is not very helpful. You should include the exact steps and commands that you use to reproduce this error. You should also provide more context about what you are trying to do. Give us an example with details.
MrHola21 avatar
ph flag
@Nmath now is it alright ?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.