besoft Active Member Licensed User Longtime User Feb 12, 2018 #1 I'm creating an application where I use the jShell library: Code: Dim shl As Shell shl.Initialize("shl", "java.exe" , Array As String("-jar", "admin.jar", 0)) shl.WorkingDirectory = "C:\matrix2\module_admin\Objects" shl.Run(-1) 'set a timeout of 10 seconds When I close the application to StdOut I get the information. I do not know where it comes from. Code: Port=3662 So it looks like the data returned. The opened application uses UDP, this information is basically the port on which it is listening .. What should I return an open application to this StdOut? Where or how to define the information returned by the app at closing. THX
I'm creating an application where I use the jShell library: Code: Dim shl As Shell shl.Initialize("shl", "java.exe" , Array As String("-jar", "admin.jar", 0)) shl.WorkingDirectory = "C:\matrix2\module_admin\Objects" shl.Run(-1) 'set a timeout of 10 seconds When I close the application to StdOut I get the information. I do not know where it comes from. Code: Port=3662 So it looks like the data returned. The opened application uses UDP, this information is basically the port on which it is listening .. What should I return an open application to this StdOut? Where or how to define the information returned by the app at closing. THX
Erel B4X founder Staff member Licensed User Longtime User Feb 12, 2018 #2 I'm sorry but I'm not sure that I understand the question. Upvote 0
besoft Active Member Licensed User Longtime User Feb 13, 2018 #3 I apologize for the bad question. I have two applications, I open second application over the first one with jShell. When I close the second application, I get to the StdOut data in the form "Port = 3662". They communicate with each other via UDP and the returned information is the UDP port of second application. Where is the normally defined information returned by StdOut? I can not figure out what in second application causes StdOut to show this UDP port. Upvote 0
I apologize for the bad question. I have two applications, I open second application over the first one with jShell. When I close the second application, I get to the StdOut data in the form "Port = 3662". They communicate with each other via UDP and the returned information is the UDP port of second application. Where is the normally defined information returned by StdOut? I can not figure out what in second application causes StdOut to show this UDP port.
Erel B4X founder Staff member Licensed User Longtime User Feb 13, 2018 #4 You can run it with RunWithOutputEvents and then handle the StdOut and StdErr events. Note that they are raised on background threads. You can use CallSubDelayed to call a sub on the main thread. Upvote 0
You can run it with RunWithOutputEvents and then handle the StdOut and StdErr events. Note that they are raised on background threads. You can use CallSubDelayed to call a sub on the main thread.
besoft Active Member Licensed User Longtime User Feb 17, 2018 #5 Thanks for the reply, Finally, I found out what was happening on StdOut. All logs from second application are visible through StdOut in the first application. Very useful. THX Upvote 0
Thanks for the reply, Finally, I found out what was happening on StdOut. All logs from second application are visible through StdOut in the first application. Very useful. THX