Execute Command
Execute command on the host by clicking the button '+' and then select the 'execute command' component.
![](https://docs.3dolphins.ai/~gitbook/image?url=https%3A%2F%2F765826444-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYDAnLjpg2T8z2BplJOS%252Fuploads%252FDnOS7Kmnl2SvdKTFUdxB%252FCommand%2520Setting.png%3Falt%3Dmedia%26token%3Db46ebf5a-0815-46a2-956d-cfa7725d0c9f&width=768&dpr=4&quality=100&sign=36c42d17&sv=1)
Component explanation :
Component | Description |
---|---|
Command Name | The node id, in the workflow component. |
Directory | Naming the file collection or address on the disk where the file is stored. |
Shell | Command translator program typed, in the prompt. |
For example: in this case, we will execute the 'testing.sh' file in the '/opt' directory, with a note that bash is an active shell.
![](https://docs.3dolphins.ai/~gitbook/image?url=https%3A%2F%2F765826444-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FLYDAnLjpg2T8z2BplJOS%252Fuploads%252F7Ey7vmW0UfoeBytLO4QS%252FExecute%2520%2520Command%2520Setting.png%3Falt%3Dmedia%26token%3D7373bf61-39c4-4bad-aaba-7ddd8b58be5b&width=768&dpr=4&quality=100&sign=ef316640&sv=1)
The following are examples of commands (shell) that will not be processed, i.e :
ls
:(){:|:&};:
rm
/dev/
wget
mkfs
>
^foo^bar
dd
char
chmod
cp
mv
scp
passwd
These commands are in command.block
Last updated