I have the following two bash scripts (perhaps they can be condensed into one).
// pre-tail.sh
#!/usr/bin/env bash open -b com.apple.terminal `dirname $0`/tail.sh // tail.sh
#!/usr/bin/env bash tail -F ${FILE_TO_TAIL} I would execute like so:
FILE_TO_TAIL=some.log ./pre-tail.sh so I launch the first one, and ideally the output of the second bash script would appear in a new terminal window, but it doesn't quite work. Anyone have an idea why?
My other question is - instead of using com.apple.terminal, is there a more agnostic way to open up a new terminal window and run a command?
teeortee -a? (Seeman tee.)