How to control script objects from the command line
OverviewThe command line tool "VISULOX addon script" allows to control VISULOX shell scripts |
Usage
The following subcommands are available:
| Command | Description |
|---|---|
| list | List and print shell scripts. |
| add | Add a shell script. |
| edit | Modify fields of a shell script. |
| delete | Remove a shell script. |
Shell script elements (edit)
| Element | Description |
|---|---|
| -name<> | Name of the script entry in the database <> |
| -category <> | Script category rdp / guard. Default value: rdp |
| -mode <> | Script enabled / disabled. Default value: on. |
| -script <> | Path to a readable existing script file "<>arg1 arg2 arg3" |
| -grant <> | Set granted user in database record <> |
Examples
List current available shell scripts
CODE
visulox addon script list
-------------
| basicname |
-------------
| Check1 |
| Check2 |
-------------
Add script
CODE
visulox addon script add -name Check3 -category guard -script /tmp/test3
Add an existing RDP file to the VISULOX Cluster
CODE
visulox addon script add -name RDP -category rdp -script /tmp/testfile.rdp
Edit shell script
CODE
visulox addon script edit -name Check3 -category guard -mode off -script /tmp/test4
Remove an entry
CODE
visulox addon script delete -name Check3