image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
Thread Tools
  #1  
Old September 17th, 2002, 11:27 AM
Registered User
 
Join Date: Mar 2002
Location: Philadelphia
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
huck is on a distinguished road
Script to open terminal and launch telnet

Since i know nothing about UNIX, i was wondering if somone would like to write a script for me.

I want to be able to open a new terminal window and have telnet open. All i want to do is to be open to open the new window and input an ip address.

I'm checking to see that all routers on network have pswd. I'm simply just running down a list of IP's

Anyone interested?

Peace.

Ver
Reply With Quote
  #2  
Old September 17th, 2002, 03:12 PM
vvvvjvvvyvvtvv
 
Join Date: Nov 2000
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
kwalker is on a distinguished road
If you're willing to type 7 extra characters in addition to the IP address, try the following:

(1) Launch the terminal application (it's in /Applications/Utilities/)

(2) Type 'telnet 123.456.78.90' (without the quotes; substitute the actual IP address for 123.456.78.90).
Reply With Quote
  #3  
Old September 17th, 2002, 03:18 PM
Registered User
 
Join Date: Mar 2002
Location: Philadelphia
Posts: 102
Thanks: 0
Thanked 0 Times in 0 Posts
huck is on a distinguished road
Thanx for the help...but that is what i have been doing.

Peace.

Ver
Reply With Quote
  #4  
Old September 17th, 2002, 08:43 PM
Excalibur's Avatar
Registered User
 
Join Date: Sep 2001
Location: Bay Area, CA
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Excalibur is on a distinguished road
Telnet Applescript

Open the Script editor. and cut and paste this code.

Code:
set myIP to text returned of (display dialog "Input IP Address" 
buttons {"Ok", "Cancel"} default answer "" default button {"Ok"})

tell application "Terminal"
	activate
	do script "telnet " & myIP
end tell
It will prompt you for an IP then run telnet via the terminal with that IP for you. If that is what you are asking, here you go.
__________________

.: Quicksilver G4 1.33GHz: OSX 10.4.1: Radeon9800Pro: 1.5GB: 80GB
.: Al 15" 1.25GHz: 10.4.1: Radeon9600Mobility: 512MB: 80GB: Superdrive: AE: Bluetooth
.: www.excalibur-design.com :.
.: End of line...

Last edited by Excalibur; September 17th, 2002 at 08:51 PM.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[HOWTO] - Launch and run VNC server remotely simon1663 HOWTO & FAQs 12 April 8th, 2005 09:05 AM
help with terminal launch script kon21 Mac OS X System & Mac Software 0 November 6th, 2003 01:59 AM
Can terminal be a part of desktop? qwikstreet Unix & X11 6 May 12th, 2003 01:33 PM
Terminal slow to launch (Continued from Classic forum) Wilsonium Mac OS X System & Mac Software 19 May 26th, 2002 12:20 PM


All times are GMT -5. The time now is 03:59 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.