Terminal Applications: Starting from CLI
Hey folks -
I'm slowly but surely converting to the OS X world from Linux/UNIX/X11/etc. I'm running into a couple of interesting roadblocks that I'm hoping folks can help me with.
With my X11 window manager of choice, I have menu items set up to run certain scripts. One script will open a terminal application for the local machine. One will open a term and sudo to root for me. Several will open a term and ssh off to other hosts that I need to log in to during work, etc.
I'm reasonably confident I can accomplish this with xterm. But I don't think I can with the Terminal application, or other apps I've tried (like iterm, etc.) Once they're running from the CLI, they won't start *another* window. Nor do I know how to feed them arguments like "hey, ssh to host x.y.z.a".
Anyone have any suggestions? I can just use xterm, but I'd rather use something a bit newer.
Thanks!
jas
I'm slowly but surely converting to the OS X world from Linux/UNIX/X11/etc. I'm running into a couple of interesting roadblocks that I'm hoping folks can help me with.
With my X11 window manager of choice, I have menu items set up to run certain scripts. One script will open a terminal application for the local machine. One will open a term and sudo to root for me. Several will open a term and ssh off to other hosts that I need to log in to during work, etc.
I'm reasonably confident I can accomplish this with xterm. But I don't think I can with the Terminal application, or other apps I've tried (like iterm, etc.) Once they're running from the CLI, they won't start *another* window. Nor do I know how to feed them arguments like "hey, ssh to host x.y.z.a".
Anyone have any suggestions? I can just use xterm, but I'd rather use something a bit newer.
Thanks!
jas
Comments
There is also a folder in ~/Library/ (~/Library/Terminal/, I think) that allows you to put all your .term files into it. They will then appear on a drop-down option under the 'File' menu of Terminal.app. iTerm.app similarly allows you to define terminals that will auto-run a command (like ssh, telnet, etc) and they appear on a drop-down menu (I think it's also under the File menu).
Originally posted by pyr3
Termainl.app (and I believe iTerm.app) will open .term files. A .term file is just a plist (XML property list).
Cool, thank you much for the response. Someone else also suggested using an Applescript to accomplish the same thing. Between these two suggestions, I should be able to figure something out.
Thanks!
jas