Posts by Sabbath Doomicus Metallicus • 11 points
5 posts
-
-1
votes2
answers70
viewsA: Python - Checking items in a list
Kaique, thank you so much! I was trying here and I think I got tbm... But your suggestion seems to be much more efficient (to get still...), simpler and clearer :). Anyway follows as I did: app1 =…
-
-2
votes2
answers70
viewsQ: Python - Checking items in a list
I have a scenario, a little confused to explain... but I’ll try... I need to compare listA with listaB, where case 1 or more items from listaA are within the listaB, I print it on the screen, but in…
-
-1
votes1
answer40
viewsQ: Check the existence of a string in a file from another file
I have two files, one is this: gp2,POL-AES-SHA1,Prop-AES-SHA1 gp2,POL-AES-SHA1-PFS-2,Prop-AES-SHA POL-3DES-SHA,Prop-3DES-SHA Note that you can have 2 or 3 items per line (separated by comma). In the…
-
0
votes2
answers93
viewsA: Python socket module - for loop - socket.gaierror: [Errno 11001] getaddrinfo failed
sorry for the delay and thanks for your attention. I performed some tests and it worked as follows my script: import socket Devices = open('Devices') tcpports = open(ports') tcpportsread =…
socketanswered Sabbath Doomicus Metallicus 11 -
1
votes2
answers93
viewsQ: Python socket module - for loop - socket.gaierror: [Errno 11001] getaddrinfo failed
I am trying to create a script that performs connection testing on various hosts and different ports, example: 10.20.20.1,1433 10.30.30.2,1521 10.30.30.3,80 10.20.20.4,443 In the script I open a…
socketasked Sabbath Doomicus Metallicus 11