Dear All
I am trying to figure out how to open a terminal window from within another terminal window and have the newly opened one run a command. I got this far:
open -na Terminal.app
This opens the new terminal Window (actually, probably opens another instance of Terminal which is not too efficient, but works). But how do I augment the command so the new window automatically runs something, say: ls -al? (Need to be able to supply arguments to the command I will run.)
A colleague got it to work running it from xterm. But it is clearly a hack. Any ideas how to do it better? Am I going about this the wrong way entirely?
Thanks
L
I am trying to figure out how to open a terminal window from within another terminal window and have the newly opened one run a command. I got this far:
open -na Terminal.app
This opens the new terminal Window (actually, probably opens another instance of Terminal which is not too efficient, but works). But how do I augment the command so the new window automatically runs something, say: ls -al? (Need to be able to supply arguments to the command I will run.)
A colleague got it to work running it from xterm. But it is clearly a hack. Any ideas how to do it better? Am I going about this the wrong way entirely?
Thanks
L