<div dir="ltr">Thank you!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 28, 2020 at 7:33 PM David T. Lewis <<a href="mailto:lewis@mail.msen.com">lewis@mail.msen.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Chris,<br>
<br>
RemoteTask is entirely in memory, no disk access, it forks an exact copy<br>
of the image and VM. The block is evaluated in the child image, and the<br>
result is serialized back to your parent image. The parent and child<br>
image are identical at the point of the fork, so neither is any more or<br>
less secure than the other.<br>
<br>
Regarding your convenience method, please try using OSProcess class>>outputOf:<br>
instead. This will probably do a much better job for you because it<br>
handles all of the stdio piping without using files, and it also will<br>
present any external command errors in the form of an exception in Squeak.<br>
<br>
Dave<br>
<br>
On Mon, Sep 28, 2020 at 04:23:23PM -0500, Chris Muller wrote:<br>
> Hi Dave,<br>
> <br>
> I saw your RemoteTask the other day and had a quick question about it.<br>
> <br>
> Do you see any pitfalls doing operations that require or provide sensitive<br>
> security key information as input, or output.<br>
> <br>
> As an analogy, I've been using my own convenience method on OSProcess to<br>
> give me a way get Linux command output into the image, but it does so by<br>
> simply redirecting the command's output to a file, reading that file into<br>
> an in-image String, then deleting the file.  But that's not something I<br>
> would want to use if it involved passing a password, for example.<br>
> <br>
> My hope is RemoteTask operates all in memory and does not utilize the hard<br>
> drive to accomplish that.<br>
> <br>
> Thanks,<br>
>   Chris<br>
> <br>
> On Sat, Sep 26, 2020 at 7:06 PM David T. Lewis <<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>> wrote:<br>
> <br>
> ><br>
> > On Sat, Sep 26, 2020 at 03:20:10PM -0700, tim Rowledge wrote:<br>
> > ><br>
> > > And multi-core? Well yes I suppose. Except that one can very easily<br>
> > spawn multiple running images using Dave Lewis' OSProcess package,<br>
> > including in ways that do some work and return the results.The spawning<br>
> > takes very little time; for example on said Pi4 it takes 39mS to do<br>
> > >     UnixProcess forkHeadlessSqueakAndDoThenQuit: [UnixProcess helloWorld]<br>
> ><br>
> > <OT><br>
> > Or the somewhat more interesting example:<br>
> ><br>
> >    RemoteTask do: [3 + 4] ==> 7<br>
> ><br>
> > which completes in on the order of 10ms on my PC, and hopefully not too<br>
> > much worse on Pi4. The [3 + 4] block is evaluated in a spawned image with<br>
> > results returned to the parent image.<br>
> > </OT><br>
> ><br>
> > Dave<br>
> ><br>
> ><br>
> ><br>
<br>
> <br>
<br>
<br>
</blockquote></div>