The Run Command tool allows you to run external command programs within Alteryx. This tool can be used as an input, output, or an intermediary tool.
The Run Command tool cannot be used in apps saved to the Alteryx Analytics Gallery.
Using the Run Command tool is similar to running applications directly from the Windows command line, but with the convenience of remaining within the Alteryx GUI. For example, you can use the tool:
If the program you are using does not set error flags, you should wrap it in a batch file to make sure the output file is deleted before it is run.
When you run the workflow, the Run Command tool configuration is executed in sequence: Write Source, Run External Program, and then Read Results.
If the external program is a UNIX-style command line app that takes input from stdin and writes to stdout, you can use the << and >> operators to pipe the information to and from files. For more information, see the Microsoft documentation.
In this example, the tool is configured as follows:
Write Source: (blank)
Command: curl.exe
Command Arguments: http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KCOBOULD10&month=6&day=19&year=2005&format=1 -o "%temp%\temp.csv"
Working Directory: (blank)
Read Results: %temp%\temp.csv
Explanation:
©2018 Alteryx, Inc., all rights reserved. Allocate®, Alteryx®, Guzzler®, and Solocast® are registered trademarks of Alteryx, Inc.