<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Hilaire,</p>
<p>Certainly yes, that is exactly how OSProcess works. I would encourage you to debug the example (in the method comment) and see what it does. I will be very happy to try to answer questions or make suggestions if I can be of help.</p>
<p>I will mention that there is a companion package CommandShell that works with OSProcess to provide better integration of external OS processes with the image, but that is not ported to Cuis (design thinking required!) so it is topic for a separate discussion. I think that OSProcess alone should be good for the kind of processing you want to do.</p>
<p>Dave</p>
<div id="signature"></div>
<p><br /></p>
<p id="reply-intro">On 2024-11-13 19:57, Hilaire Fernandes via Cuis-dev wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1" style="color: #000000; background-color: #ffffff;">
<p><span style="font-size: large;">Hi,<br /></span></p>
<p><span style="font-size: large;">With OSProcess package, is it possible to execute a shell command in another host process than the host process in which the VM is executing?</span></p>
<p><span style="font-size: large;">With Linux CLI tools, </span><span style="font-size: large;">I want to convert PDF document to a collection of JPEG bitmaps , and it may be best executed asynchronously and in another OS process the one used by the VM (to take advantage of the multicore cpu architecture).<br /></span></p>
<p><span style="font-size: large;">Thanks<br /></span></p>
<p><span style="font-size: large;"> </span></p>
<pre><span style="font-size: large;">OSProcess>>command: aCommandString</span>
<span style="font-size: large;"> "Run a command in a shell process. Similar to the system(3) call in the standard C library,</span>
<span style="font-size: large;"> except that aCommandString runs asynchronously in a child process."</span>
<span style="font-size: large;"> "OSProcess command: 'ls -l /etc'"</span>
<span style="font-size: large;"> ^ self thisOSProcess command: aCommandString</span>
</pre>
<p><span style="font-size: large;"> </span></p>
<p><span style="font-size: large;"> </span></p>
<pre class="v1moz-signature">--
<a class="v1moz-txt-link-freetext" href="http://mamot.fr/@drgeo" target="_blank" rel="noopener noreferrer">http://mamot.fr/@drgeo</a></pre>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"> </div>
</blockquote>
</body></html>