[Snek] Stopping a runaway program
Misha Gusarov
dottedmag at dottedmag.net
Sun Apr 12 11:23:02 PDT 2020
Hi.
How should a runaway Snek program be stopped?
The problem I'm trying to solve is the following: I'd like to run a
program from "EEPROM"
on start on Lego EV3, but I find that even trivial
> while True: print("hello world")
can't be stopped via "serial" (actually network) – snek is busy
outputting data, and does
not stop to read Ctrl-C from stdin.
If that does not work, then running anything at startup is a recipe for
disaster: the only
way to clear a bad for program will be SSHing to the EV3 and removing
the stored program.
Best,
Misha.
More information about the Snek
mailing list