I have a script which needs some kind of interaction from user to work properly. How do I pass custom commands from one terminal window to another ?
Let s say we have 2 terminals opened. /dev/ttys000 and /dev/ttys001, on the first one our interactive shell is working. Now commands like - help > /dev/ttys000 work fine, but custom commands which my script supports like - itIsNotABashCommand > /dev/ttys000 don t work at all, printing 'command not found'.