[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] Re: [Tor Bug Tracker] #1388: Error parsing PID from output of "ps"
#1388: Error parsing PID from output of "ps"
-----------------------+----------------------------------------------------
Reporter: anonymous | Type: defect
Status: new | Priority: normal
Milestone: | Component: Android (Orbot)-Backend / Core
Version: | Keywords:
-----------------------+----------------------------------------------------
Comment(by atagar):
Nathan: Hi, I'm not sure off hand what the issue is but arm runs into
similar problems (needing to guess the tor process id). In my case I use
ps as a last resort, doing the following:
1. "pidof tor"
2. "netstat -npl | grep 127.0.0.1:%s" % <tor control port>
3. "ps -o pid -C tor"
With pidof and ps I discard the results if there's multiple tor instances
(since the second is the only one that'll account for the currently used
control port). Hope this helps! -Damian
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/1388#comment:1>
Tor Bug Tracker <https://trac.torproject.org/>
The Tor Project: anonymity online