Simple SSH Client
- Luca Brasi
- Experienced User
- Posts: 262
- Joined: Sat Oct 11, 2008 12:39 pm
Re: Simple SSH Client
Thank you very much sem;colon!
Win10 x64 Prof. / Eventghost latest / MCE Plugin / MCE RC6 Receiver / Logitech Harmony Hub / MediaPortal / kodi
Re: Simple SSH Client
I LOVE this plugin!!!
And I have a question. This might be more related to EG & Python scripting but how do I get "results" returned from the SSH commands sent and perhaps use them elsewhere in EventGhost? Like to show the results on screen or maybe do a whole other action task with it?
Attached is a screen shot of what comes back. I am interested in showing (and acting on) the region/location info seen in image. I did drag the one dragable event/result to my EG tree but it gets very truncated only showing "SSH.Data.Vyp" as the result. But I want more.
Thanks for any help,hints,links,answers.
And I have a question. This might be more related to EG & Python scripting but how do I get "results" returned from the SSH commands sent and perhaps use them elsewhere in EventGhost? Like to show the results on screen or maybe do a whole other action task with it?
Attached is a screen shot of what comes back. I am interested in showing (and acting on) the region/location info seen in image. I did drag the one dragable event/result to my EG tree but it gets very truncated only showing "SSH.Data.Vyp" as the result. But I want more.

Thanks for any help,hints,links,answers.
eventghost.net
Be there or be square.
Be there or be square.
Re: Simple SSH Client
Hi zian,
thanks mate, I'm happy you like it!
Yep, that's more a general thing; what you're looking for is the command
If you put this in an execute python script action that is triggered by this data event you get as response you'll be able to work with the data that is returned.
In this case the data type is an array that holds the lines of the response.
The data you're interested in has the index 4 and 5.
So and .
You can use the print command to see what you have, for example:
You'll see it's still a little more than you want, but I guess with some string operations you'll be able to figure out how to extract the information you want from here 
To get something as result of the script action, simply use return
thanks mate, I'm happy you like it!

Yep, that's more a general thing; what you're looking for is the command
Code: Select all
eg.event.payload
In this case the data type is an array that holds the lines of the response.
The data you're interested in has the index 4 and 5.
So
Code: Select all
eg.event.payload[4]
Code: Select all
eg.event.payload[5]
You can use the print command to see what you have, for example:
Code: Select all
print eg.event.payload[4]

To get something as result of the script action, simply use return
Code: Select all
return eg.event.payload[4]
Re: Simple SSH Client
Thanks for all that Sem,
Unfortunately I have zero clue what to do with those tags or that information. Gonna search the forums more now. Do some python script learnin' too maybe.
Unfortunately I have zero clue what to do with those tags or that information. Gonna search the forums more now. Do some python script learnin' too maybe.
eventghost.net
Be there or be square.
Be there or be square.