[squeak-dev] How to shutdown Raspbian from within Squeak?

David T. Lewis lewis at mail.msen.com
Thu Mar 9 00:07:42 UTC 2017


On Wed, Mar 08, 2017 at 05:09:59PM -0500, Louis LaBrunda wrote:
> Hi Tim,
> 
> Thanks.  Do you remember how to load OSProcess in the first place?  And then is there a file,
> like a .so files or something that I need to put somewhere?
> 
> Lou

You can load OSProcess and CommandShell (I recommend that you load both) from
the SqueakMap package loader.

If you prefer loading directly with Monticello, the repositories are here:
  http://www.squeaksource.com/OSProcess
  http://www.squeaksource.com/CommandShell

And general information is at:
  http://wiki.squeak.org/squeak/708
  http://wiki.squeak.org/squeak/1914
  http://wiki.squeak.org/squeak/6023

Having said that, I suspect that the reboot is going to be tricky.
The sudo command is designed for security, and it is smart enough not
to let the password input come from some arbitrary input stream such as
the one connected to your Squeak image. I'll try tinkering around with
it a bit, but I'm afraid this may not be not as simple as you might expect.

Dave


> 
> 
> On Wed, 8 Mar 2017 13:32:25 -0800, tim Rowledge <tim at rowledge.org> wrote:
> 
> >
> >> On 08-03-2017, at 12:49 PM, Louis LaBrunda <Lou at Keystone-Software.com> wrote:
> >> 
> >> Hi All,
> >> 
> >> How can I shutdown Raspbian from within Squeak?  I use to know how to send OS commands, with I
> >> think OSProcess, but it has been years and I forgot how and can't find the old code.  Thanks in
> >> advance. 
> >
> >It??ll be something like 
> >UnixProcess thisOSProcess command: ??sudo shutdown now'
> >
> >
> >tim
> -- 
> Louis LaBrunda
> Keystone Software Corp.
> SkypeMe callto://PhotonDemon
> 
> 


More information about the Squeak-dev mailing list