CAUTION
In some environments, it is necessary to explicitly control the background server process when using certain shells.
The following limitations and instructions are known for different shells:
-
Bash
The Bash shell implements its own job control. Hence, it is necessary to apply an ampersand (&) with the first command creating the background server. The ampersand indicates to the Bash shell that the command should run in the background. You can use thetrapcommand to automatically clean up the background server when the script exits:apax plc-control connect -t 192.168.0.1 -u myUserName -p myPassword -C ./cert.cer & trap "plc-control server-stop --force" EXIT apax sld load -t 192.168.0.1 -i ./bin/1500 --accept-security-disclaimerNote
All scripts in the
apax.ymlfile use the Bash shell. -
PowerShell
PowerShell does not support an explicit job control. Therefore, no special operations are required. Additionally, connection sharing is used automatically for scripts here. Each SIMATIC AX online tool is starting the background process for 10 sec. The next online tool will find an open connection and skips theconnectcommand. After 10 sec of idle time, the background process will be automatically stopped.
It is important to consider these limitations when using CI pipelines.
Note
There may be problems releasing the pipeline resources if using connection sharing. So it is advisable to shut down the background process explicitly to avoid any issues.
To avoid any issues, you can set the global environment variable AX_SHARE_CONNECTION to 0.