• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Telnet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Telnet


  • Subject: Re: Telnet
  • From: "Jacco Rens " <email@hidden>
  • Date: Tue, 13 Mar 2001 10:39:15 +0100

On maandag, maart 12, 2001, at 01:53 , Scott Palmer wrote:

> Can anyone tell me how to write a script that will automate telnet.
>
> This is waht I have to do
>
> 1. Open MacTelnet 3.0a19
> 2. Open a connection to "gateway"
> 3. Input my username then hit return
> 4. Input my password then hit return
>
> Can this be automated?

needs sleep osax and autotype osax

on DoMySQLCommand()
with timeout of 36000 seconds
tell application "NiftyTelnet"
activate
geturl "yourbookmark"
end tell
AutoType "`return"
sleep for 60
AutoType "username"
AutoType "`return"
sleep for 20
AutoType "password"
AutoType "`return"
sleep for 20
AutoType "cd /usr/local/......" & return
sleep for 20
AutoType "mysql/bin/mysql commands" & return
sleep for 20
tell application "NiftyTelnet" to quit
end timeout
end DoMySQLCommand

Best,
Jacco
Netherlands


References: 
 >Telnet (From: Scott Palmer <email@hidden>)

  • Prev by Date: Re: detect launch of file?
  • Next by Date: re:Scripting Canto Cumulus Client 5
  • Previous by thread: Telnet
  • Next by thread: Quiting Appz but not finder
  • Index(es):
    • Date
    • Thread