sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03033
[Question #159974]: Grabbing command output
New question #159974 on Sikuli:
https://answers.launchpad.net/sikuli/+question/159974
What's the best way to grab some ascii output from a linux cli command such as:
date +%H
date +%M
which would be the hour and minute respectively (00 and 45 near the time of posting)
I tried this:
starthour = openApp("date +%H")
switchApp("gedit")
sleep(1)
print starthour
the logs seem to hint that nothing is done:
[log] App.open date +%H(0) [log] openApp: date +%H
[log] App.focus gedit(0) #0 [log] switchApp: gedit
0
TIA,
Mike
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.