... | ... | @@ -8,7 +8,6 @@ Let's take an example with two applications registered: |
|
|
polling_time="100" sleep_time="10"
|
|
|
max_applications="20"
|
|
|
log_level="FINE" log_directory="/users/cameo/log">
|
|
|
|
|
|
<applications>
|
|
|
<application name="App1" description="My application"
|
|
|
working_directory=""
|
... | ... | @@ -168,4 +167,22 @@ We saw the different cases based on the initialization of *This* or not. But wha |
|
|
|
|
|
The response is simple: a registered app can be started by the console *cmo* from another computer.
|
|
|
|
|
|
Registering an app offers more flexibility in the way to start an app. |
|
|
\ No newline at end of file |
|
|
Registering an app offers more flexibility in the way to start an app.
|
|
|
|
|
|
# Register a script
|
|
|
|
|
|
If you want to register a script e.g. a Bash script or a Python script, it is highly recommended to define the executable with the interpreter program rather the script itself even if it is executable. For example:
|
|
|
```xml
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<config host="gamma-machine">
|
|
|
<applications>
|
|
|
<application name="Script1">
|
|
|
<start executable="bash" args="/users/ics/app1.sh"/>
|
|
|
</application>
|
|
|
<application name="Script2">
|
|
|
<start executable="python" args="-u /users/ics/app2.py"/>
|
|
|
</application>
|
|
|
<applications>
|
|
|
</config>
|
|
|
```
|
|
|
The reason is because the underlying process execution works not well when the executable is the script. |
|
|
\ No newline at end of file |