Telnet and Apple Script

Reply

Join Date: Apr 2005
Posts: 66
Reputation: gn0m3 is an unknown quantity at this point 
Solved Threads: 0
gn0m3 gn0m3 is offline Offline
Junior Poster in Training

Telnet and Apple Script

 
0
  #1
Oct 13th, 2006
Hi Folks, hope this is in the right section.

I need to Telnet to a machine from OSX, the machine is a linux box, when i do this from the terminal (or iterm) it connects but prompts me immediately with "password", it seems to be skipping the "logon" bit, but if i hit return it then prompts me for my login then password and i can get in. I have been playing with Applescripts with the telnet command and the terminal but still cant get it to go right. What i need to do is add a carriage return in when it prompts me for the password, this would then take me to the logon bit which i need. how does one do this in applescript??

Bit long winded i know but there you go! Any help would be really helpful.

gn0m3
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5,051
Reputation: John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold John A is a splendid one to behold 
Solved Threads: 332
Team Colleague
John A's Avatar
John A John A is offline Offline
Vampirical Lurker

Re: Telnet and Apple Script

 
0
  #2
Oct 13th, 2006
Hello,

There's an easier way. Simply use -l username as a command-line argument to telnet when you start it. See man telnet for more information.
"Technological progress is like an axe in the hands of a pathological criminal."

All my posts may be freely redistributed under the terms of the MIT license.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 66
Reputation: gn0m3 is an unknown quantity at this point 
Solved Threads: 0
gn0m3 gn0m3 is offline Offline
Junior Poster in Training

Re: Telnet and Apple Script

 
0
  #3
Oct 17th, 2006
thanks for the advice, in the end i created a small apple script which sorted it right out. will put below in case anyone else has this issue!

set telnet to "telnet -K ip address"
tell application "Terminal"
run
do script telnet
delay 1
end tell
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Mac Software Forum


Views: 4215 | Replies: 2
Thread Tools Search this Thread



Tag cloud for Mac Software
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC