When defining the user command, you need to call shell with the -c option and in parenthesis declare the variable name definition followed by a space in the argument to pass to the shell script. Please note, the arguments in the parenthesis need to use the concatenate setting to combine them into a single string to pass to bin/sh -c. |
Below is an example script that will echo hello followed by the $(varname) variable value to standard out. [mmuniz@myserver tmp]$ cat /tmp/hello_variable.sh The following user command passes the $(varname) variable definition to the /tmp/hello_variable.sh script Command XML: <command name="Echo hello variable command"> |
If you have follow up questions about this FAQ:
- Please contact with our Client Services team via the chat service box available in any of our websites or via email to support@itrsgroup.com
- Make sure you provide to us:
- XML code of the command entry
- screenshot of the Output dockable after running the command
Comments
0 comments
Please sign in to leave a comment.