Jump to content

Custom scripts / variables insertion


Recommended Posts

Im still runing v1 and testing v2. I noticed the custom scripts do not have an option to insert variables (server ip, port, etc).

 

I also noticed we cannot insert user variables (user name, user id) in the default configuration files which is a bit annoying.

 

 

About the config import tool it would be great if it was converting v1 install/uninstall scripts as well.

Link to comment
Share on other sites

Hello,

 

You have access to all or most variables depending on the context of the custom script.

 

If using batch scripts you would use: %ThisService_IPAddress% or %ThisService_CustomVar%

 

Some events, such as Before Started have a more limited scope of variables you can use.

 

http://help.tcadmin.com/Custom_Scripts

 

You can insert the username into config files using $[service.UserName]. You can likely use the UserID as well, however, I have not tested it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use