Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

running code once in a while loop python

flg = True
while COUNT != 0:
    print("Running!")
    if flg:
        text = process[0] + " process running"
        url = URL + "sendMessage?text={0}&chat_id={1}".format(text, CHAT_ID)
        # send message to groups
        requests.get(url)
        flg = False
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #running #code #loop #python
ADD COMMENT
Topic
Name
1+1 =