Android Question jkSSH2 - SSH2 send a variable ---SOLVED

emockler

Member
Licensed User
Longtime User
HI
I'm doing this:
SSH2.execCommand("vim-cmd vmsvc/power.getstate"& vm, 22)

to send vim-cmd vmsvc/power.getstate

which requires a number at the end for VMID

and I would like to iterate through a list of VMID's, which are not consecutive or in order.

However, sending the variable "vm" is failing as I have it written above. If I do this:
SSH2.execCommand("vim-cmd vmsvc/power.getstate 15", 22)
it of course works and returns the state of VMID 15.

What would be the syntax for this? I have searched here as well as links for ganymede that it's based on, but haven't landed on an answer yet. Is it possible?

Thanks!
Eric
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

emockler

Member
Licensed User
Longtime User
Hey, you da man!
I guess I can't see the forest for the trees sometimes, another set of eyeballs did the trick.


Thanks!
 
Upvote 0
Top