Open evilchili opened 9 years ago
What's the output of: ps awux
?
Do you mind running this command and emailing me the resulting ps.pickle
and metadata.pickle
files?
#!/usr/bin/env python
import pickle
import psutil
ps = list(psutil.process_iter())
metadata = []
for p in ps:
m = [p.name()]
try:
m.append(p.cmdline())
except psutil.AccessDenied:
pass
metadata.append(m)
ps_pickle = open('ps.pickle', 'wb')
metadata_pickle = open('metadata.pickle', 'wb')
pickle.dump(ps, ps_pickle, -1)
pickle.dump(metadata, metadata_pickle, -1)
(Updated the above script to use binary mode, oops)
sent!
Ah, looks like that machine's screen
binary is actually named screen-4.0.3
. Easy to add support for binaries that start with screen-
. :)
Or, maybe for screen the correct way is to look at the socket directory... Maybe the right way for tmux too, come to think of it. Will investigate that further as it seems less fragile.
ps-screen installs on OS X 10.8.4, but yields no output. Here is the install log, including the dependencies, should they be relevant:
And here's the bug:
System/python info:
This is an older box, so I would seek confirmation before worrying too hard about it.