[Cuis-dev] OS Process

lewis at mail.msen.com lewis at mail.msen.com
Wed Nov 13 14:32:16 PST 2024


Hi Hilaire,

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.

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.

Dave

On 2024-11-13 19:57, Hilaire Fernandes via Cuis-dev wrote:

> Hi,
> 
> 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?
> 
> With Linux CLI tools, 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).
> 
> Thanks
> 
> OSProcess>>command: aCommandString
> "Run a command in a shell process. Similar to the system(3) call in the 
> standard C library,
> except that aCommandString runs asynchronously in a child process."
> 
> "OSProcess command: 'ls -l /etc'"
> 
> ^ self thisOSProcess command: aCommandString
> 
> --
> http://mamot.fr/@drgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241113/9669e89e/attachment.htm>


More information about the Cuis-dev mailing list