Description
Class name: com.ebd.hub.datawizard.util.SystemCallAgent
Configuration: The system call components are specified in field "Config file" (separated by commas, without whitespaces).
This class allows you to execute a system call.
If you want to change the default delimiter (comma), you can use the prefix DELIM: followed by the new separator (exactly one character). So, for example, DELIM:#test.bat instead of test.bat
Examples
Example for Windows:
Class | SystemCallAgent |
Config file | C:\Windows\System32\cmd.exe,/c,dir,/w |
Note: The environment variable PATH will not be used, so the whole path has to be specified.
Example for Linux:
Class | SystemCallAgent |
Config file | ls,-l |
Note: For Linux scripts, please note that the exit code at the end of the script must be set to 0. A value other than 0 is interpreted as an error. Windows scripts are not affected by this. Example:
#!/bin/bash
echo "test"
done
exit 0