WEBRUN.LIT

Add new LIT command for WEBCACHE support:

.WEBRUN url {args}

Front-end to RUN.LIT which 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 also bypasses the normal search path—i.e. 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 dir.

.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.