osx - Calling ps -f from Python on different machines, getting different results -


i have tests require server. end, each time execute set of tests, start instance of tornado or simplehttpserver. however, because several jobs may run @ same time, or server previous run might have hung, need check there no other processes same name 1 "i in".

so, is: execute os's ps -f python list of processes running on machine, , call python's os.getpid() id of process. find name of process in output ps -f.

there 5 machines in testbed, 2 of them linux machines, , 3 of them macs. thing works great on of machines except 1 mac. 1 of macs doesn't include process ps -f called output ps.

the first thing checked whether os same on macs, , is. me understand problem is?


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -