commandexecutordocumentation
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| commandexecutordocumentation [2022/01/09 20:11] – wikiadmin | commandexecutordocumentation [2022/01/09 22:02] (current) – wikiadmin | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| {{: | {{: | ||
| - | ===Using | + | The Output of this Bean is the text which would be generated if the command were executed |
| + | ===Run a Simple Command=== | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | To get a list of png image files in directory C: | ||
| + | |||
| + | <code text> | ||
| + | cmd /c dir C: | ||
| + | </ | ||
| + | |||
| + | and connect a Button to the " | ||
| + | |||
| + | In Linux, the Command will be similar, but in this example we change to the images directory then get the list of png files in it: | ||
| + | |||
| + | <code text> | ||
| + | (cd / | ||
| + | </ | ||
| + | |||
| + | ===Running a .sh or .bat=== | ||
| + | |||
| + | You can use the Command Executor to run a Linux .sh or Windows .bat. Example commands for Linux and Windows are: | ||
| + | |||
| + | <code text> | ||
| + | | ||
| + | </ | ||
| + | |||
| + | <code text> | ||
| + | cmd /c start .\\reports\\run_report.bat | ||
| + | </ | ||
| + | |||
| + | ===Passing Parameters=== | ||
| + | |||
| + | An Array Value Object can be constructed (either by script or using a StringToArray, | ||
| ===Configuration=== | ===Configuration=== | ||
| Line 20: | Line 53: | ||
| **Command**: | **Command**: | ||
| - | **SQL Statement**: | ||
commandexecutordocumentation.1641777115.txt.gz · Last modified: by wikiadmin
