VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   python: send to port (https://forums.vandyke.com/showthread.php?t=13908)

JensH 09-20-2019 03:07 AM

python: send to port
 
Hi,

It is possible to send all output to a network Port?
So i can catch it like this?

sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.bind((UDP_IP, UDP_PORT)))
Daten, addr = sock.recvfrom(1024)
print(data.decode('UTF-8').upper())

bgagnon 09-20-2019 08:09 AM

Hi JensH,

How is SecureCRT involved? Has it received the output?

What version of SecureCRT are you using?

On what OS/platform?

JensH 09-21-2019 10:30 AM

it is connected to the COM interface and is supposed to display everything that comes there in time and transfer it to a Python program via network.
The Python program then evaluates what is coming but that's another issue and wrong here :)

using: scrt852-x64

bgagnon 09-22-2019 05:44 PM

Hi JensH,

It's still not clear to me how you are attempting this.

The only way I could see this being possible is using the _socket module, which is presently not supported in SecureCRT/Windows.

I have added this thread to a feature request in our product enhancement database to add native support for _socket Python module on Windows. Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include Feature Request - Forum Thread #13908 in the subject line or use this form from the support page of our website.


All times are GMT -6. The time now is 12:40 AM.