<div dir="ltr">Jonas, AFAIK, from my "just user oriented" point of view, hitting ctrl-z pauses the process (see then result from "jobs"), process is send to background using "bg" or fogreground "fg" command<div><br></div><div>$ yes</div><div>ctrl-z</div><div>$ jobs</div><div>$ bg</div><div><br></div><div>yes, the process is still in memory, waiting, but not running, but not consuming processor time </div><div><br></div><div>yes, this is related to operating system (could be tricky on windows)</div><div><br></div><div>as far as I understand it</div><div><br></div><div>J</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">po 23. 5. 2016 v 10:14 odesílatel Jonas Eberle <<a href="mailto:jonas.eberle@gmx.de">jonas.eberle@gmx.de</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><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">Hi,</div><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000"><br></div><div 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"><a href="http://vertito.blogspot.de/2007/11/stop-pause-and-continue-linux-process.html" target="_blank">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"><br></div><div 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"><br></div><div 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">Jonas</div></div></div><div><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"><br></div><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000"><br><span>----- Am 22. Mai 2016 um 23:20 schrieb Jachym Cepicky <<a href="mailto:jachym.cepicky@gmail.com" target="_blank">jachym.cepicky@gmail.com</a>>:<br></span><div><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"><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">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><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" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a></blockquote></div></div><br></div></div></blockquote></div>