[Oberon] A technote for automatically running batch job on system startup

Joerg joerg.straube at iaeth.ch
Sun Aug 2 17:44:16 CEST 2020


Chuck

Do I understand correctly, you modified TextFrames and System and have to recompile everything.

I wonder whether it would work as well to introduce a new „batch document“ type (something like BatchFrames inherited from TextFrames where you only add your new CallMsg? 
And let System.Mod import your new BatchFrames.

You would not have to recompile everything. It‘s an add-on to the system and only the implementation of System would change. System should not even get a new key...

Or do I miss something?

Jörg

> Am 02.08.2020 um 16:52 schrieb Charles Perkins <chuck at kuracali.com>:
> 
> 
> Hello everybody,
> 
> I wrote a note on how to have Oberon automatically run a startup script. I introduced two small changes to TextFrames.Mod (five lines total) introducing a 'Call Message' and then handling that message with a call to the Call procedure, and three small changes to System.Mod (eight lines total) introducing two variables, opening a viewer with a predetermined text file, and then sending the call message to the viewer at the end of system initialization.
> 
> https://github.com/io-core/technotes/blob/main/technote013.md
> 
> I used Michael Schierl's Batch.Mod for the actual batching of commands but Andreas Pirklbauer's system would have worked just as well, or any other batching or script system. The above changes merely call the first command in a text file, the rest of what happens is up to that command.
> 
> I did this to make building and testing my own system more automatic but I thought I'd share in case anyone found it interesting or useful
> 
> Best Regards,
> Chuck
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20200802/f4a0b68f/attachment.html>


More information about the Oberon mailing list