LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SSH CMD session with timeout

Hi community,

 

Here is the problem I'm having.  I need to SSH into a remote system and execute a command that has a small possibility to hang forever, the command will return a JSON text payload that I parse for a response.

 

When the command hangs it blocks my whole system.  What I would like to do is execute the command with a window title and a parallel timer that will taskkill the window if it stays open for longer then timeout, so how do I do this?

 

I've tried:

 

-Using START "Title" [ssh command] but this opens a Window secondary to the main System Exec.vi window that I can't read the return from.

-Using the SSH package from Labview with the timeout option, but this seems to fail more often 

 

Is there a good way to do what I am trying to accomplish?

0 Kudos
Message 1 of 1
(116 Views)