8

SAP Intelligent RPA 2.0: Execute command activity

 3 years ago
source link: https://blogs.sap.com/2021/08/09/sap-intelligent-rpa-2.0-execute-command-activity/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

The execute command activity allows you to launch commands or application during your workflow.

The Execute Command activity

The activity perform a ctx.shellexec and takes the following parameters:

  • command
  • parameters (optional)
  • dir (optional)
  • flag (optional)

With this activity we can start commands that will be started like a command line in the command run program that you can start with WIN + R on windows.

command.png

Here we write the string “Hello World” using the command “echo” into an output file

The activity also allows you to execute commands and launch application, for example you can start a script python as you can see in the following example.

Screenshot-2021-07-27-153807-1.png

Here we use the activity to launch a python script from a powerShell and redirect the output in a file.

Conclusion

With this activity, you can launch application or execute command in the workflow. To retrieve the output, of the activity, you can redirect the output to a file and read this file next.


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK