Shell Command Services

A service can be configured to execute shell commands.

 
<service> 
	<background>true</background>
	<fork>false</fork>
	<script> load.sh </script> 
</service> 

The shell script will run as it would if it were executed at the command-line. The shell script inherits the environment from the Logscape parent process. Vbscripts, batch files also execute in the same way.

Passing Arguments

Any override properties are passed to the shell script as a key value pair. There are no restrictions on the naming of properties. As long as the property does not violate any rules for that particular shell. For example '!' and ';' are special characters when using a unix shell but the ';' is perfectly valid when on the Windows platform.

Arguments can also be passed to your shell script in the script tag.