Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
RaiMan proposed the following answer:
sorry, might have mis leaded you.
The loop, how it works on my Mac (if I had your RegiS application) would
look like this (no test output):
import os
theApp = 'RegiS'
c
Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
Michael A. Phillips posted a new comment:
I need to test more, but I think your:
if test: print cpu; break
if cpu < cpuMax : break
needs to be:
if test: print cpu
if cpu < cpuMax : break
Will post my
Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
Michael A. Phillips posted a new comment:
I'm not sure I understand the loop logic. I'm finding that it may be
easier for me to strip the proper values out with awk/gawk and then pass
from a lean variable to
Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
Michael A. Phillips posted a new comment:
gawk seems to work well for CLI testing:
ps ux | gawk '/RegiS/ {print $3}'
Thanks!
--
You received this question notification because you are a member of
Sikuli D
Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
RaiMan proposed the following answer:
I admit, that I did not test it on Linux but on Mac.
this is my top command:
top usage: top
[-a | -d | -e | -c ]
[-F | -f]
Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
Michael A. Phillips posted a new comment:
I cannot seem to get top to output using the arguments you used.
Stripping extra information seems necessary and I'll need to test quite
a bit.
$ ps uax | grep Regi
Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
RaiMan proposed the following answer:
RaiMans patience is one of the things, people really love ;-)
And people who want to learn get even more patience (at least as long as
I have the impression, my help is
Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
Michael A. Phillips posted a new comment:
I am too shy to ask and am not sure how to parse out the proper cpu
parameter within the process list within python code. If you have
patience I am happy to learn!
Question #168326 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168326
Status: Open => Answered
RaiMan proposed the following answer:
You can use the os.popen() to submit the top command and get the output
back to your script as a list of lines, that you can scan for the
re
New question #168326 on Sikuli:
https://answers.launchpad.net/sikuli/+question/168326
I regularly use Sikuli to automate some high CPU astronomy apps like RegiStax
(http://registax.astronomy.net/) I currently monitor the percent bar at the
bottom and watch for it to get to 100%. This can take
10 matches
Mail list logo