how to check if a python script is running
# using Ubuntu
ps -aux | grep "python" # will give you the list of python process running
how to check if a python script is running
# using Ubuntu
ps -aux | grep "python" # will give you the list of python process running
python is program running
import win32ui
def WindowExists(classname):
try:
win32ui.FindWindow(classname, None)
except win32ui.error:
return False
else:
return True
if WindowExists("DropboxTrayIcon"):
print "Dropbox is running, sir."
else:
print "Dropbox is running..... not."
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us