Re: Telnet
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>) |