[squeak-dev] How to shutdown Raspbian from within Squeak?
Chris Muller
asqueaker at gmail.com
Thu Mar 9 21:20:15 UTC 2017
>> Actually on a Pi ???sudo??? is normally password-free, wjich is probably enough to make some people???s heads explode, but there y???are.
There's no reason anyone should let their head explode about that.
There are definitely use-cases for it, particularly in Pi
applications.
> Yes, on raspbian it will probably work. The tricky bit is that if you do
> need to enter a password, sudo will read the password from the controlling
> terminal the Squeak VM process, represented by /dev/tty. That more or less
> equates to your keyboard. There is no easy way for Squeak to insert a keyboard
> wedge to supply the password keystrokes, which of course is exactly what
> was intended from a security point of view.
I would just:
OSProcess command: 'xterm -e "sudo shutdown now"'
More information about the Squeak-dev
mailing list
|