06-06-2018 11:31 PM
as i mentioned it not issue of spaces or wrong syntax.
function setcontext is loaded from globalvariables once you open interactive session.
During remote sessions variables are not loaded (so function as well) so it's not recognized by bash.
All other command are created as links so there is no problem to access it as the env PATH is loaded during remote session.
06-07-2018 03:19 PM
Well, since I just modified a script, and it worked...
Application.SendKeys ("setcontext 128")
Application.SendKeys ("~"), True
Application.Wait (Now + TimeValue("0:00:01"))
Note the quotes.
06-07-2018 11:50 PM
sure once you are not using remote shell but interactive it will works.
The problem is once you are using remote shell it will not load variables from profile.