Added October 2016
WEBRUN url {args}
WEBRUN.LIT is the front-end to RUN.LIT which enables A-Shell's WEBCACHE system. WEBRUN downloads the specified program from url into the webcache directory and then runs it, passing any args to it. If url contains spaces, it must be quoted, and if any args are specified, there must be at least one space between url and the args. If the url filename has no extension, .run is assumed. It also enables the webcache feature and all options—equivalent to SET WEBCACHE ENABLE,PROG,OPENI,LOOKUP—and sets the default URL based on URL given minus the filename.
Note that this command bypasses the normal search path: it will ignore a copy of the target program in the current [p,pn], [p,0] or [7,6] directories.
Examples
.WEBRUN http://www.mysite.com/app1/myprog
This command:
• enables all webcache options
• sets the repo to http://www.mysite.com/app1
• checks local webcache for myprog.run; if not there, tries to download it from the URL.
• tries to execute it from the webcache directory.
.WEBRUN "http://www.another site/app2/prog2.run" /demo
Similar to previous example except that it also passes the command line switch "/demo" to the target program prog2.run.
History
2016 October, A-Shell 6.3.1529 and 1531: WEBCACHE function added to A-Shell. The module includes a basic description, the SET.LIT options for WEBCACHE, new functions WEBRUN.LIT, MX_WEBCACHE and ? tab(-10, AG_WEBCACHE).