I am an absolute Mac and programming novice, though I can find my way around my laptop. I want to write a small applescript/automator action that will reboot my broadband router/modem. I have tried manually executing the following commands directly on the Mac Terminal and it works. I need some help porting this into applescript and have no idea how to do this... my commands are highlighted in bold below
Last login: Mon Dec 31 18:01:32 on ttys000
user-macbook-pro:~ user$ telnet 192.168.1.1 23 <return>
Trying 192.168.1.1.. .
Connected to 192.168.1.1.
Escape character is '^]'.
*******************
Welcome to Vulcan
*******************
Conexant Inc., Software Release R100B03.0A.M
Copyright (c) 2001-2003 by Conexant, Inc.
login: admin <return>
password: xxxxx <return>
Login Successful
$reboot <return>
Mon Dec 31 18:02:55 2007 : WARNING : PPP Interface Down : Interface - ppp-0
I do not know how to terminate terminal thereafter. Would you please be able to help me out here by telling me what I should do to automate this simple action?
One more thing, though... I believe I will need a 2 to 5 second break in between each command just to give the computer time to log into the router, so the script will need to be modified accordingly.
Thanks very much!
Last login: Mon Dec 31 18:01:32 on ttys000
user-macbook-pro:~ user$ telnet 192.168.1.1 23 <return>
Trying 192.168.1.1.. .
Connected to 192.168.1.1.
Escape character is '^]'.
*******************
Welcome to Vulcan
*******************
Conexant Inc., Software Release R100B03.0A.M
Copyright (c) 2001-2003 by Conexant, Inc.
login: admin <return>
password: xxxxx <return>
Login Successful
$reboot <return>
Mon Dec 31 18:02:55 2007 : WARNING : PPP Interface Down : Interface - ppp-0
I do not know how to terminate terminal thereafter. Would you please be able to help me out here by telling me what I should do to automate this simple action?
One more thing, though... I believe I will need a 2 to 5 second break in between each command just to give the computer time to log into the router, so the script will need to be modified accordingly.
Thanks very much!