Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

General Discussions

Discuss any topics that are not product-specific here.
SOLVED

How to use the RUN COMMAND in detailed and also pass the parameters in dynamically .

Navyasree123
8 - Asteroid

Hi,I hope all doing great ,Today is my query of the day

I am using the run command tool it shows an External program error ,and also explain the configuration ,how to take the date in run command tool. so please help me with this query

 

3 REPLIES 3
Luke_C
17 - Castor

Hi @Navyasree123 

 

Could you say a bit more about the use case? It's certainly possible to generate commands in a formula tool and then pass those to the run command tool.

tristank
11 - Bolide

Hi Navyasree!

 

The run command tool has been giving me some issues as I've been building out a macro so I've been researching it for a while. That said, I will share you with you a few things I learned and share some resources I have found.

 

1. You don't need to input into the tool or even output to it. If you are going to output from the tool you need to fill out the 'Read Results' section and choose a path to a file.

 

2. The 'Command' section of the tool is for the path to the executable. For example, if it is a python script the 'Command' section would have the /path/to/python.exe. If you are running something directly in the terminal then you don't need to give it a path. For example if you wanted to execute a bat script you can put the path right in the 'Command' section.

 

3. The 'Command Arguments' section can be the path to the script you are trying to execute (if it was python for example).

 

Here are some pictures of the successful run command tools I have created:

 

1. Bat Script

tristank_0-1685205812359.png

 

2. Python Script

tristank_1-1685205845189.png

 

Here are some resources I have read thru that helped me:

 

https://help.alteryx.com/20231/designer/run-command-tool

https://interworks.com/blog/mtreadwell/2016/03/03/using-alteryx-run-command-tool/

https://www.thedataschool.co.uk/alex-jones/setting-run-command-tool-alteryx-regularly-update-file-se...

 

Hope some of this helps. Have a good weekend :)

Navyasree123
8 - Asteroid

Hi,@Luke_C

If we pass the parameter in the workflow it will display into the command how to do this .please help me with this

Labels