Revision [560]

This is an old revision of HowToScript made by DavidLee on 2009-05-24 06:22:49.

 

How to run an xmlsh script


An xmlsh "script" is nothing more then xmlsh commands exactly as you would type them interactively, put into a text file.
The file extension you should use for xmlsh scripts is ".xsh" so that xmlsh can know this is an xmlsh script without opening it.

There are 2 ways to run an xmlsh script.

Running a script from within xmlsh


If you are already running xmlsh, either interactively or in a script, you can run an xmlsh script by using its filename without the ".xsh" extension as the command. Similar to how shells search the PATH variable, xmlsh searches the XPATH variable to locate your script (and also any imported Extension Modules).

Running a script from outside xmlsh


You run an xmlsh script from outside xmlsh by passing the script name in as the first argument to the xmlsh program, including the ".xsh" extension.


There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki