redirecting the output of input command to the type command - to output results on terminal console?

Asked by jamie on 2017-04-23

Sikuli question:
I have configure a script to open up a terminal and at the console type root@myname:~# apt-fast check using the following command.
type("apt-fast check"+Key.ENTER)

I would like to have users input there own command argument such as install ,check,upgrade,remove.
For test purposes I have been just been using this command line to gather users input

commander = input("apt-get command:")
print commander

The print commander outputs the results to sikuli message console.

How can I incorporate the output of input command into a type command as a variable?
or print direct to the terminal console from within sikuli script?

Question information

English Edit question
Sikuli Edit question
No assignee Edit question
Last query:
Last reply:
RaiMan (raimund-hocke) said : #1

commander = input("apt-get command:")
print commander
# refocus the terminal window

Can you help with this problem?

Provide an answer of your own, or ask jamie for more information if necessary.

To post a message you must log in.