This problem can be solved using /usr/share/newlisp/init.lsp . newLISP looks for this file on startup. In there you define:
Code: Select all
; init.lsp - newLISP startup file
(constant 'loadpath "/usr/home/jeremy/development")
On each machine you have a different init.lsp. No in your program:
Code: Select all
; myprog.lsp
(load (append loadpath "filea.lsp"))
There is also the following method using the http-mode of 'load' (version 9.0 or later):
Code: Select all
(load "http://192.168.0.1:8080/modules/filea.lsp")
This is just an example of course you could put any other URL. You could put all modules on a central server. You don't even need an extra webserver, but could do on the 192.168.0.1 machine when using 9.0 or later.
Code: Select all
newlisp -c -d 8080
; or better
nohup newlisp -c -d 8080 &
In this mode the newlisp can receive (load "http://...") requests. Since 9.0.7 you also can specify a working directory.
I assume that you works on UNIX in this case ley newlisp be started by the machines inetd or xinetd service. This has the advantage that the machine canhandle mutiple load requests at the same time.
Read more about distributed computing with newLISP here:
http://newlisp.org/CodePatterns.html#distributed
Lutz
ps: in the future move this type of questions to the "newLISP for Win" or "newLISP for Unix" topic. We use the "news" topic for news and everything related to documentation.