Now I have a udp_server.py to run.
According to my less experience, I will do a python script in crontab as bellow.
import commands
output = commands.getoutput("ps aux | grep udp_server.py")
'''print output
user 8695 0.0 0.3 50948 14196 pts/0 S 10:21 0:00 python udp_server.py
user 9486 0.0 0.0 4400 584 pts/0 S+ 10:34 0:00 sh -c { ps aux | grep 'udp_server.py'; } 2>&1
user 9488 0.0 0.0 9384 888 pts/0 R+ 10:34 0:00 grep udp_server.py
'''
if 'python udp_server.py' in output:
print "The server is active."
is this right?