<html><body><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;">Hi,</div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"><br data-mce-bogus="1"></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;">please be aware the "ctrl-z" is not pausing the process, it puts the process in the background (still running). From the terminal you can then start another process. So this is not about pausing and resuming. I quickly found an example how it could work, first put the process in the background, second stop (kill -STOP) the process and third resume (kill -CONT) the process: </div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"><a href="http://vertito.blogspot.de/2007/11/stop-pause-and-continue-linux-process.html" data-mce-href="http://vertito.blogspot.de/2007/11/stop-pause-and-continue-linux-process.html">http://vertito.blogspot.de/2007/11/stop-pause-and-continue-linux-process.html</a></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"><br data-mce-bogus="1"></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;">But be aware, pausing and resuming are always OS dependent tasks. This need to be taken into account.</div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"><br data-mce-bogus="1"></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;">Cheers,</div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;">Jonas</div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"><br data-mce-bogus="1"></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000;"><br><span id="zwchr" data-marker="__DIVIDER__">----- Am 22. Mai 2016 um 23:20 schrieb Jachym Cepicky <jachym.cepicky@gmail.com>:<br></span><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr">Hi,<br><div>thanks for the info. About "controlling": we need at least "kill", "pause" and "resume" process. As far as I understand it, kill could be implemented using os.kill (if you know the process ID from the operating system point of view - it should be stored in the sqlite database for now). For pause and resume, I would suggest to find similar way as hitting "ctrl-z" in the command line, which "pauses" running process in the terminal and to get it in frontend again, you run the "fg" command - if you undestand what I'm talking about. I did not study, how this is usually done on system level (in unix systems), this is just my practical observation</div><br><div>J</div></div><br><div class="gmail_quote"><div dir="ltr">so 21. 5. 2016 v 23:14 odesílatel Jan Rudolf <<a href="mailto:rudolja1@fit.cvut.cz" target="_blank">rudolja1@fit.cvut.cz</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;" data-mce-style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;">Hello,<br>
<br>
I want to inform you about my status: my semester in school ends<br>
tomorrow. I've got final exams from Graph algorithms this Thursday and<br>
from Linear algebra a week after. Hope, I make it without problems<br>
(these two are the hardest), the rest will be ok/not that time<br>
consuming.<br>
<br>
Jachym specified top 4 goals for me on IRC meeting:<br>
step 1: you get PyWPS up and running and you will be able to run several<br>
asynchronous processes on your computer<br>
step 2: find out, what is the python way to control (and if possible) in<br>
background running processes<br>
step 3: create API (rest) for this controlling<br>
step 4: if there is time, create web UI<br>
<br>
I have working PyWPS with Apache on my computer. Don't know if it's the<br>
case, that I have Mac OS, but I had a little bit trouble to set up<br>
according to Github - so I can check it later on Ubuntu for example<br>
and/or make a manual for Mac. So step 1 is done.<br>
<br>
Next is step 2. I would like to in next week or two create demonstrative<br>
applications (not interfering PyWPS repo) about possibilities of the<br>
control of processes in Python (with the focus on our functionality) as<br>
template cases for an integration into PyWPS source code. Then<br>
integration, REST API, so on...<br>
<br>
All the best, Jan Rudolf<br>
<br>
_______________________________________________<br>
pywps-dev mailing list<br>
<a href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a></blockquote></div>
<br>_______________________________________________<br>pywps-dev mailing list<br>pywps-dev@lists.osgeo.org<br>http://lists.osgeo.org/mailman/listinfo/pywps-dev</blockquote></div></div><br></div></body></html>