Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-20-2019, 04:07 AM
JensH JensH is offline
Registered User
 
Join Date: Sep 2019
Posts: 2
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())
Reply With Quote
  #2  
Old 09-20-2019, 09:09 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,019
Hi JensH,

How is SecureCRT involved? Has it received the output?

What version of SecureCRT are you using?

On what OS/platform?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 09-21-2019, 11:30 AM
JensH JensH is offline
Registered User
 
Join Date: Sep 2019
Posts: 2
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
Reply With Quote
  #4  
Old 09-22-2019, 06:44 PM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,019
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.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 09:08 PM.