dimitrifrom31 Posted January 8, 2014 Share Posted January 8, 2014 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 More sharing options...
barrycarey Posted January 11, 2014 Share Posted January 11, 2014 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 More sharing options...
dimitrifrom31 Posted January 11, 2014 Author Share Posted January 11, 2014 thanks I was looking for that ; too bad you cannot insert those in custom batch scripts with a click but I will live with it for now. Converting v1 scripts to v2... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now