Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-09-07 Thread RaiMan
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

Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-09-07 Thread Michael A. Phillips
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

Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-09-07 Thread Michael A. Phillips
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

Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-09-06 Thread Michael A. Phillips
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

Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-09-03 Thread RaiMan
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]

Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-09-02 Thread Michael A. Phillips
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

Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-08-18 Thread RaiMan
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

Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-08-18 Thread Michael A. Phillips
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!

Re: [Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-08-17 Thread RaiMan
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

[Sikuli-driver] [Question #168326]: Watching process utilization to augment PSL

2011-08-17 Thread Michael A. Phillips
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