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

Asked by jamie

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

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

commander = input("apt-get command:")
print commander
# refocus the terminal window
paste(commander)
type(Key.ENTER)

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.