| « Since the 10th of June ... | New Blog for Anonymisation and Secure Web Surfing » |
How to screenify that one?
My first thought: Mhhh, that command will run for quite some time. And then? Then I noticed that this session wasn't attached to a screen and I don't wanted to repeat everything.
So here's a good way to attach your running process to a new terminal (like screenify): It's called reptyr!
- Just download:
wget https://download.github.com/nelhage-reptyr-reptyr-0.2-8-g66888f4.tar.gz, unpack and - Install as usual:
make && sudo make install. - If you're on ubuntu you'll need to disable ptrace protection:
sudo echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
For the record, yes there are also other programs like neercs or injcode which are able to grab a process that one forgot to start within a screen. I haven't tried them.
A better or the best way for sure is to start a screen session per default every time you login!
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
