{"action":"created","issue":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/674","labels_url":"https://api.github.com/repos/giampaolo/psutil/issues/674/labels{/name}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/674/comments","events_url":"https://api.github.com/repos/giampaolo/psutil/issues/674/events","html_url":"https://github.com/giampaolo/psutil/issues/674","id":103719558,"number":674,"title":"Emulating ps STAT output","user":{"login":"siavashaslanbeigi","id":10292123,"avatar_url":"https://avatars.githubusercontent.com/u/10292123?v=3","gravatar_id":"","url":"https://api.github.com/users/siavashaslanbeigi","html_url":"https://github.com/siavashaslanbeigi","followers_url":"https://api.github.com/users/siavashaslanbeigi/followers","following_url":"https://api.github.com/users/siavashaslanbeigi/following{/other_user}","gists_url":"https://api.github.com/users/siavashaslanbeigi/gists{/gist_id}","starred_url":"https://api.github.com/users/siavashaslanbeigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siavashaslanbeigi/subscriptions","organizations_url":"https://api.github.com/users/siavashaslanbeigi/orgs","repos_url":"https://api.github.com/users/siavashaslanbeigi/repos","events_url":"https://api.github.com/users/siavashaslanbeigi/events{/privacy}","received_events_url":"https://api.github.com/users/siavashaslanbeigi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-08-28T13:31:49Z","updated_at":"2015-08-29T16:07:19Z","closed_at":null,"body":"Can I access the \"STAT\" attribute of the \"ps\" command for a specific process using psutil? (http://askubuntu.com/questions/360252/what-do-the-stat-column-values-in-ps-mean). More specifically, I would like to know if the question asked in http://unix.stackexchange.com/questions/152140/find-out-which-process-is-in-foreground-on-bash can be answered by psutil, instead of having to parse the output of \"ps\"."},"comment":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/comments/136005514","html_url":"https://github.com/giampaolo/psutil/issues/674#issuecomment-136005514","issue_url":"https://api.github.com/repos/giampaolo/psutil/issues/674","id":136005514,"user":{"login":"siavashaslanbeigi","id":10292123,"avatar_url":"https://avatars.githubusercontent.com/u/10292123?v=3","gravatar_id":"","url":"https://api.github.com/users/siavashaslanbeigi","html_url":"https://github.com/siavashaslanbeigi","followers_url":"https://api.github.com/users/siavashaslanbeigi/followers","following_url":"https://api.github.com/users/siavashaslanbeigi/following{/other_user}","gists_url":"https://api.github.com/users/siavashaslanbeigi/gists{/gist_id}","starred_url":"https://api.github.com/users/siavashaslanbeigi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siavashaslanbeigi/subscriptions","organizations_url":"https://api.github.com/users/siavashaslanbeigi/orgs","repos_url":"https://api.github.com/users/siavashaslanbeigi/repos","events_url":"https://api.github.com/users/siavashaslanbeigi/events{/privacy}","received_events_url":"https://api.github.com/users/siavashaslanbeigi/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T16:07:19Z","updated_at":"2015-08-29T16:07:19Z","body":"For the two scenarios above, I get the exact same output : p.terminal() = '/dev/ttys008' and p.status() = 'running', so what you're suggesting does not seem to work for me."}}