How to control action scripts from the command line
OverviewThe command line tool "VISULOX admin action" allows to control action scripts. |
Usage
The following subcommands are available:
| Command | Description |
|---|---|
| list | List and print action scripts. |
| add | Add an action script. |
| edit | Modify fields of an action script. |
| delete | Remove an action script. |
| categories | Show all available action script categories |
| fields | List available database fields (-raw = enhanced output) |
Action script elements (edit)
| Element | Description |
|---|---|
| -name <> | Name of the action script <> (mandatory!) |
| -category <> | Textblock category <> (mandatory!) |
| -comment <> | Comment of the action script <> |
-scriptfile <> | Action script from file <> (mandatory!) |
| -grant <> | Set granted user in database record <> |
Examples
List current available action scripts
CODE
visulox admin action list
----------------------------------------------
| basicname | category |
----------------------------------------------
| PINScript | pin |
| LoginScript | login |
| Generic Access Script | access |
| Generic Application Script | application |
| Generic NotifyScript | * |
| Generic Transit Notification | transitzone |
| Dump | * |
----------------------------------------------
Add new action script
CODE
visulox admin action add -name Test -category login -scriptfile testfile
Edit action script
CODE
visulox admin action edit -name Test -comment "Using test script testfile"
Display available categories
CODE
visulox admin action categories
login,access,application,pin,transitzone,commandconnect,report,*
Remove an entry
CODE
visulox admin action delete -name Test