Closed amosbird closed 7 years ago
If you run reptyr -l
with a command line, it will execute that command with the REPTYR_PTY
environment variable set. So you could do something like
reptyr -l sh -c 'echo $REPTYR_PTY > /tmp/reptyr-pty'
and then read the pty out of that tmpfile.
I'm writing a script using tmux and gdb to automatically generate a productive debugger. Currently I use
sleep infinity
to set up an inferior tty. I'd like to switched toreptyr -l
. However, i cannot get the output ofreptyr -l
in order to make the whole setting up process automatic.The script looks like this ,