Python Forum
Python script Server list - if condition error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python script Server list - if condition error
#10
sorry, but it's not clear

you have a list of servers and a file. So you want to check if any/which of the servers in the list are present in the file or you want to check if any/which entries in the file are also present in the list? Also if you just print No Serv found, how you know which serv is not found.
Or maybe you want to check if one SPECIFIC server is in the file?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Python script Server list - if condition error - by buran - Jan-27-2020, 08:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  unable to remove all elements from list based on a condition sg_python 3 527 Jan-27-2024, 04:03 PM
Last Post: deanhystad
  Triggering a ps1 script in remote windows server via http python request jasveerjassi 1 427 Jan-26-2024, 07:02 PM
Last Post: deanhystad
  Python Alteryx QS-Passing pandas dataframe column inside SQL query where condition sanky1990 0 786 Dec-04-2023, 09:48 PM
Last Post: sanky1990
Sad "PriceSystem" Python Script error to Shopify API Alphetto 0 467 Jul-04-2023, 10:03 AM
Last Post: Alphetto
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,468 Jun-29-2023, 11:57 AM
Last Post: gologica
Question Need help for a python script to extract information from a list of files lephunghien 6 1,180 Jun-12-2023, 05:40 PM
Last Post: snippsat
  How to modify python script to append data on file using sql server 2019? ahmedbarbary 1 1,269 Aug-03-2022, 06:03 AM
Last Post: Pedroski55
  Server Folder Error : WinError5 Access Denied fioranosnake 1 1,172 Jun-21-2022, 11:11 PM
Last Post: Larz60+
  select Eof extension files based on text list of filenames with if condition RolanRoll 1 1,568 Apr-04-2022, 09:29 PM
Last Post: Larz60+
  No module named '_cffi_backend' error with executable not with python script stephanh 2 5,793 Nov-25-2021, 06:52 AM
Last Post: stephanh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020