2 ms·
This seems useful. I would welcome some guidance on what's going wrong, here. met% ps -aef | grep python | grep time myusername 25476 25417 0 16:05 pts/9
by Estragon 16y ago
This seems useful. I would welcome some guidance on what's going wrong, here.
met% ps -aef | grep python | grep time
myusername 25476 25417 0 16:05 pts/9 00:00:00 python -c import time, sys; [sys.stdout.write(str(i)+"\n") or time.sleep(1) for i in range(1000)]
met% sudo ~/src/reptyr/reptyr 25476
[+] Allocated scratch page: 7f4477b3d000
[+] Looking up fds for tty in child.
[+] Resolved child tty: /dev/pts/9
[+] Found an alias for the tty: 0
[+] Found an alias for the tty: 1
[+] Found an alias for the tty: 2
Unable to attach to pid 25476: Permission denied
Same thing happens when I try to take control of an ssh session.
Ubuntu 10.04.1, built with
met% git clone https://github.com/nelhage/reptyr.git
met% cd reptyr/
met% make
- nelhage 16y agoHm. It currently has a bunch of known limitations, and the debug output probably isn't helpful to anyone other than me at the moment, but that test case works on my Maverick (Ubuntu 10.10) and Lucid (10.04) systems, so I'm not sure why it's failing for you. If you'd like me to take a look, the most helpful thing you could get me would be to install strace, and then run strace -o /tmp/reptyr.strace ~/src/reptyr/reptyr PID and then send me the contents of /tmp/reptyr.strace Thanks!