Move a program between two shells

("host:port") /continue/at moves the running program to that address; the rest of it runs on the far side. Two shells on one computer, both in hosts/unix.o.se after make. The second waits on a UDP port for a machine and runs whatever arrives (in the machine’s own instruction language: bind a socket, receive one bundle, run it):

./o.se -f o.se.osen/osen.ose '/,/s/127.0.0.1' '/,/i/17793' \
    '/!/udp/sock/bind' '/!/udp/recv' '/!/drop' '/!/exec1'

In the first, start a prompt with ./o.se -f o.se.osen/osen.ose and type one line:

/n : (20, 22) /o/add, ("127.0.0.1:17793") /continue/at, (/n) /o/println

The first shell answers : []. The second prints : 42: the machine moved, and (/n) /o/println ran there with /n still bound.


Examples · Between hosts