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.
04-24-2019 04:50 AM
when using ssh the /etc/profile is not set and you can't . /etc/profile because theres a / in there
you need to use i.e
ssh -f admin@$i fosexec --fid $virt -cmd "switchshow"
where $i is your switch and $virt is the Fabric ID (virtual machine ) you want to see