by kuwze · 7y ago · 0 comments
I recently found out that you can’t easily spawn a shell and then send commands to it. It’s doable with tmux commands, but you’d think it would be easier. I just wanted to write something that locates npm/virtualenv stuff in bash, nothing fancy.
That's what you get setup for you by running tmux, screen, expect, xterm, ssh etc.
(Bonus: https://askubuntu.com/questions/481906/what-does-tty-stand-f... )
Bash is pretty bad at helping you discover how to do things.
echo ls | bash mkfifo testpipe1
<testpipe1 bash # in separate window
echo ls > testpipe1