CommandLine overview
CommandLine services are not running.
The commandline file contains three different parts:
-
the name of the Talend Studio executable corresponding to your OS, for example: ./Talend-Studio-linux-gtk-x86
-
operating options, for example:
-nosplash, no interface is displayed.
-application org.talend.commandline.CommandLine, the application is launched in commandline mode.
-consoleLog, the logs are displayed in the console.
-data commandline-workspace, specify the path and name of the commandline workspace.
-
the operating mode, for example: startServer -p 8002
If you want to modify the default settings, you can edit the file, and set it according to your need.
If you want to run your CommandLine in background on Linux, you first need to disable the shell. To do so:
-
Edit the commandline.sh file.
-
Add the --disableShellInput command.
-
Save your file.
Example of use of this command:
./Talend-Studio-linux-gtk-x86 --disableShellInput -nosplash
-application org.talend.commandline.CommandLine -consoleLog -data commandline-workspace
startServer -p 8002
Then you can execute your CommandLine in background. To do so, do the following:
-
Switch to the <CommandlinePath>.
-
Enter the command:
./commandline.sh &
Once the commands have been executed, you can close the CommandLine window and it will not exit the service.
The CommandLine can be executed in four different modes, according to your need:
-
Standalone/Basic mode, see Standalone/Basic mode.
-
Shell, see Shell mode.
-
Server, see Server mode (deprecated).
-
Script, see Script mode.
The most common mode used is the Server mode.