3 ms·
In one terminal, run: $ mkfifo myfifo $ while true; do sed -rune 's/^Dev server started on port (.*)/\1/p' myfifo | xargs -n1 -I{} echo "Execute other comm
by abbeyj 4y ago
In one terminal, run:
$ mkfifo myfifo
$ while true; do sed -rune 's/^Dev server started on port (.*)/\1/p' myfifo | xargs -n1 -I{} echo "Execute other command here with argument {}"; done
In the other terminal, run your server and tee the output to the fifo you just created:
$ start_server | tee myfifo
- sillysaurusx 4y agoThanks for this!