Skip to main content

Launch several executable files

tip

Before launching executables, make sure you have generated and built the code. For Community version users, see Code generation on Hub4Sys to compile your code. After launching executables, you can visualize your service in Virtual Bench.

IN A BATCH FILE (WINDOWS)

Create a file *.bat in a directory. Add as many line than useful following this template:

Compiled for Windows

cd C:\path\to\the\parent\folder
start MyExe.exe 9012

Compiled for Linux

start cmd /k wsl ./MyExe1 9012

IN A BATCH FILE (LINUX)

Create a file *.sh in a directory

Add at the begining of the text:

#!/bin/bash

Add as many line than useful following this template:

gnome-terminal -- ./MyExe1 9002 &
gnome-terminal -- ./MyExe1 9003 &
gnome-terminal -- ./MyExe1 9004 &
gnome-terminal -- ./MyExe2