I wanted to have a way to execute Amiga binaries built with Rebound Retro Studio as soon as they got deployed. So, I needed some kind of watcher waiting for it to arrive on the Amiga side. My little AI robot friend has no permission to build anything in my retro space, so I had to do it myself.
Turned out, this was a nice opportunity to get (back) into programming Amiga C applications. I did stuff like that at the age of 13 or 14 or so on a real Amiga 500 using a Lattice C compiler (later: SAS/C) and therefore remembered there is a dos.library and an exec.library and that I could really do that.
And so I did it. When deployd is started it waits in a folder the Amiga shares with the Mac. When a file called deploy.txt appears (RRS sends it along with the binary, when you run the code), it reads the one command line inside, deletes the file, and runs the command as its own process. Ctrl-C stops it.
That one was really fun and it got me back into C and Amiga system application development. In a next iteration I want to extend it to be a real TCP service listening on a port and processing messages it receives, instead of (or in addition to) periodically checking the file system.
Comments
No comments yet — be the first.