|Dec 26, 2012, 06:51 AM||#1|
HELP Applescript for telnet
I would like to know correct script for telnet connection.
Below script is one I made. But it is not working.
Especially I don't know what I should use keyword or command on red part.
launch "iTerm" tell application "iTerm" activate set myterm to (make new terminal) tell myterm launch session "Default Session" tell the last session write text "telnet 192.168.2.3 2001" write text "enable" write text "password" write text "reload" if output = "System configuration has been modified. Save? [yes/no]:" then write text "n" else if output = "Proceed with reload? [confirm]" then write text "y" end if end tell end tell end tell
Thank you for your attention.
Last edited by OllyW; Dec 26, 2012 at 12:45 PM. Reason: Please use code tags
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|OS-neutral: Telnet/Text adventure games||Astroboy907||Mac and PC Games||8||Feb 23, 2014 12:27 PM|
|Telnet Banner? SSH Post-Login Message?||AmestrisXServe||OS X||1||Feb 9, 2014 11:48 AM|
|AppleScript: How do I save multiple Excel sheets to one pdf using Applescript||sbtaylor1||Mac Applications and Mac App Store||0||Oct 28, 2013 11:32 PM|
|vSSH - SSH and Telnet client for Mac OS X||Velestar||Mac Applications and Mac App Store||0||Feb 1, 2013 04:09 AM|
|Xcode telnet code||MagicJordan||iPhone/iPad Programming||0||Oct 8, 2012 05:01 PM|
All times are GMT -5. The time now is 11:44 PM.