cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

SSH client Implementation issues in Thingworx ?

mpatel-21
2-Guest

SSH client Implementation issues in Thingworx ?

Hello Expert,

I am trying to implement SSH client in Thingworx , and i able to create or execute command successfully but problems are when i fire some commands like vncserver , wrong command apply then  i am not getting any output or Error message in  (" ExecuteCommand Method use for Fire a command ") Result box.

I apply many more commands who actually return a result  but in ExecuteCommand service not return any output in result box in Thingworx.


Can you suggest steps for print output and print error also in result , if command not found or execute command error.

I follow this document from Thingworx marketplace :

SSH-Extension-and-Terminal-Widget-User-Guide-V-1.pdf

Thanks,

MP

2 REPLIES 2
placatus
5-Regular Member
(To:mpatel-21)

Hello Patel,

I am the original author of the SSH extension.

Thanks for raising this issue. The SSH extension only supports running non-interactive commands, because interactive commands require a tty attached.

I've just tested with running vncserver but I get the expected behaviour: running vncserver (interactive command) will not show anything, and will return in ~1 second after the timeout.

After that, you can launch other requests. Can you supply additional details about the error (exact order of commands maybe)?

Regarding your suggestion to also add stderr to the message, as well as the exitStatus, this feature will be added in an later release.

Thanks,

Petrisor

Hello Petrisor,

Good to see you in my question response , I resolve my issue and just one suggestion in SSH extension = "If i enter a wrong command then i need the error message in my console ".

Thanks ,

Mayank

Announcements


Top Tags