Skip to end of metadata
Go to start of metadata

This service runs the specified command line application taking the list of given parameters (if any). It returns the stdout result of the command.

Input ports

  • command - The basic command to be run. This needs to include its full path, for example '/bin/ls'. This is mandatory parameter.
  • parameters - The list of parameters to the command (if any). Note that where a parameter takes a value that is separated by a space e.g. 'somecommand -x fred', '-x' and 'fred' should be given as two separate elements in the parameter list. This is an optional parameter.

Output ports

  • result - The stdout result of running the command with the specified parameters. The result can be empty.

Examples

Careful about what you run!

Be careful about running third-party workflows containing the Execute Command Line worker - as any command can be run, this worker could be used for malicious purposes such as sending spam emails.

There are example workflows on myExperiment showing:

Operating system

Although the example workflows are for a Unix system like Linux or Mac OS X, the Execute Command Line App service works in other operating system like Windows. Note that the available commands, their path and syntax could significantly differ by operating system.

Command line workflows difficult to share

It may be difficult to share workflows using command lines with other users, as they might not have the command installed on their machine, or the tool called could be on a different path or in a different version.

If you want to share such workflows, if possible it's advisable to deploy the tool as a service

Labels
  • None