I have a MacBook Pro running 10.5, and I have a Terminal instance set up that invokes the following command:
Furthermore, I'd like to be able to start this Terminal session with a specified file name by means of a command-line dialog from within another Terminal session.
Can anyone suggest a way to do this?
By the way, I'm not looking for a solution that only works with emacs, which I only mentioned here as an example. I'd like to know a general way to pass a specified argument at invocation time to an arbitrary program that's associated with a Terminal session, and I'd like to be able to perform this invocation via the command line from within another Terminal session.
Thanks in advance.
/usr/bin/emacs -nw
I'd like to be able to pass a file name to this instance when I start it up, so that it will open a window with an emacs session that is editing that particular file. In other words, the file name is not hard-coded, but rather, it's passed in when I start the Terminal program.Furthermore, I'd like to be able to start this Terminal session with a specified file name by means of a command-line dialog from within another Terminal session.
Can anyone suggest a way to do this?
By the way, I'm not looking for a solution that only works with emacs, which I only mentioned here as an example. I'd like to know a general way to pass a specified argument at invocation time to an arbitrary program that's associated with a Terminal session, and I'd like to be able to perform this invocation via the command line from within another Terminal session.
Thanks in advance.
.
Last edited: