Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
callback function receive output text lines in real time
#7
In the code above, when I set the SSH console program window to be displayed, no text is shown in the window, but there is output in the QM output panel.
Is there any way to terminate the SSH process when the main program closes?

https://i.ibb.co/4Fvzd0c/A.gif

I tried adding the following code. The `EndThread` function doesn't work, and the `ShutDownProcess` function works when the main program runs normally, but it doesn't work when the main thread exits unexpectedly.

Code:
Copy      Help
if(IsThreadRunning("Macro38:sshExc"))
,out "FunctionX is running"
,EndThread "Macro38:sshExc" ;;NO
,ShutDownProcess "ssh" ;;OK


Messages In This Thread
RE: callback function receive output text lines in real time - by Davider - 09-28-2024, 10:31 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)