← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #242206]: write os.system generated message to csv-file

 

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

obiwan-92 proposed the following answer:
Hello,

If you really want the result of your command try this :

import subprocess as sub
p = sub.Popen("echo $(date +'%Y-%m-%d %H:%M:%S')",stdout=sub.PIPE,stderr=sub.PIPE)
output, errors = p.communicate()
print output

It should be work.

Regards

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