Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

milessthomas

macrumors newbie
Original poster
Oct 2, 2007
12
0
obx, nc
If any of you could provide me with a site or personal instructions of how to do this, your help would be greatly appreciated.

What I want to do is, create an icon on the desktop that when clicked will open terminal and automatically send the command "telnet 10.157.183.10"

Can anyone walk me through the steps on how to do this?

::Sidenote::I'm doing this for an employee that doesn't understand this process. He understands once he gets past the telnet prompt. The telnet command telnets to our SunOS server that holds our Parts Store Database on a database I believe is called GPC TAMS.
 

kainjow

Moderator emeritus
Jun 15, 2000
7,958
7
The easiest is to use AppleScript:
Code:
tell application "Terminal" to do script "telnet 10.157.183.10"
In Script Editor, you can save as "application bundle".
 

MongoTheGeek

macrumors 68040
If any of you could provide me with a site or personal instructions of how to do this, your help would be greatly appreciated.

What I want to do is, create an icon on the desktop that when clicked will open terminal and automatically send the command "telnet 10.157.183.10"

Can anyone walk me through the steps on how to do this?

::Sidenote::I'm doing this for an employee that doesn't understand this process. He understands once he gets past the telnet prompt. The telnet command telnets to our SunOS server that holds our Parts Store Database on a database I believe is called GPC TAMS.

Easiest solution.

Open terminal
File Menu->connect to server
pick telnet
click the plus sign (on the right)
enter the IP address when prompted
pick the newly entered server in the right hand pane
click connect
When the window pops up click save as
have it save only the main window (don't need to enter a command)
Pick a location to save it.

Easy enough?

I have a bunch of these setup with different servers and different settings. Custom back grounds, a different size for machines that want a 132 column output, different colors so I can tell them apart at a glance.
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
You can also just type in any command directly ("Execute this command") in the save dialog box which will execute in the Terminal window when double-clicked from the desktop.
 

milessthomas

macrumors newbie
Original poster
Oct 2, 2007
12
0
obx, nc
kainjow's response worked the best for me. Seeing as once I used that I figured out how to add additional lines to the applescript to automate the process even further
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.