← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #184165]: Need to performa click in server and thin client

 

Question #184165 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/184165

    Status: Open => Answered

RaiMan proposed the following answer:
To run something "from command line" from inside a Sikuli script, the easiest and most flexible way is to use 
os.popen (or the successor module subprocess):

import os
cmd = "the command to be executed with all its parameters" # see comment
os.popen(cmd)

On Windows use the start command, to detach the command processing
(os.popen returns directly, so your script does not wait for command
completion), on Mac use the open command.

For detailed information have a look into the Python/Jython docs.

Another possibility might be to use a task scheduler may be operated by
some shell script, so you do not have any need for a Sikuli script at
all for this purpose.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.