Make remote scripts available after Tigase startup

Igor Khomenko
Added about 4 years ago

It's possible to add a remote script with TCLMT

bin/ -u -p adminpass add-script muc room-remove "Room Remove" groovy "scripts/RoomRemove.groovy"

and then call it

Run remote script:

bin/ -u -p adminpass remote muc room-remove ""

Is it possible to make this script available after Tigase startup?

I don't want to add it each time

Replies (3)

Added by Wojciech Kapcia TigaseTeam about 4 years ago

Hm, this script simply executes "Add new command" on the server, which has option to save scripts to disk (thus making it available after restart) and it's enabled by default (v. im src/main/groovy/tigase/AddScript.groovy). Please make sure there is no problem with saving scripts to disk on the server (i.e permissions, etc).

Added by Igor Khomenko about 4 years ago


I found another way: to place a script on Tigase/scripts/admin/muc/ folder. After that this script becomes available after restart


Added by Artur Hefczyc TigaseTeam about 4 years ago

Yes, indeed but this require the server restart. Wojciech suggestion allows you to add new scripts at runtime and they are active without restarting the server.