Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Command alias?!?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Command alias?!?
Authored by: gwyd on Apr 27, '01 03:32:17PM

Hi-

You mentioned that "You could easily set the command to launch vi or emacs or run an alias you have stored to connect to a remote host." I would love to be able to open a window which logs me via a terminal session into a machine on campus I'm having to log into all the time... via ssh or telnet. What is an "alias" in this context, and how do I run it?

thanks
Gordon



[ Reply to This | # ]
re: Command alias?!?
Authored by: cichlisuite on Apr 29, '01 11:40:11PM

Hi Gordon,

to answer your question...

Open the Terminal.app (make sure you have a window open). Go to the SHELL menu and choose SAVE AS... Name this document what you like.

Open this document in a text editor (not vi, pico, etc, use a mac editor, like Pepper or BBEdit) and look for this line of text:

<key>ExecutionString</key>
<string>ssh login@servername.com
</string>

Note: put a return character after your SSH command. Upon the file being double-clicked, the Terminal will open with a new window and initiate that command. Then all you must do is enter your password.



[ Reply to This | # ]
set up an alias
Authored by: jmil on May 01, '01 10:16:27PM

go here: http://www.macosxhints.com/article.php?story=20010427210214541
and click on my last two comments "set up an alias" and "more tips" for complete instructions on setting up an alias. Hope that helps.

jmil



[ Reply to This | # ]