Mascaret
2008-06-15 10:39:50 UTC
Bonjour,
J'utilise actuellement un logiciel tierce-partie pour rebooter, en ligne
de commande, ma LiveBox.
http://gutsouney.free.fr/Divers/IP%20LiveBox.rar
=============================
reboot.bat :
@echo OFF
tst10.exe /r:reboot.txt
le contenu du reboot.txt :
192.168.1.1
WAIT "login"
SEND "root\m"
WAIT "Password"
SEND "********\m"
WAIT "[root @ home]$"
SEND "reboot\m"
WAIT "[root @ home]$"
SEND "exit\m"
WAIT "[root @ home]$"
TST
Le script utilise le logiciel TST10.exe
Son fichier d'aide :
Usage Syntax:
tst10.exe /r:script.txt [options]
/r:script.txt run script.txt
[options] any of these:
/o:output.txt send session output to output.txt
/m run script in minimized window
Usage Example:
tst10.exe /r:script.txt /o:output.txt /m
Scripting Syntax:
HOSTNAME PORT port number optional, default: 23
WAIT "string" string to wait for
SEND "string" string to send
\" represents the a quote character
\m represents a <CR/LF>
\\ represents the backslash character
Scripting Example:
hostname.com 23
WAIT "login"
SEND "root\m"
WAIT "password"
SEND "mypassword\m"
WAIT ">"
SEND "dip internet.dip\m"
WAIT ">"
Scripting Note:
You can start with either WAIT or SEND commands,
but you *must* alternate them. ie: you can't use two
or more WAIT or SEND in a row.
Note:
TST will disconnect and close as soon
as its done with the last entry of the script.
If you need to, you can type in the terminal
window while the script is running.
===========================
Est-il possible de faire la même chose avec uniquement un script vbs ou
bat, en me passant de test10.exe ?
Merci de votre aide.
J'utilise actuellement un logiciel tierce-partie pour rebooter, en ligne
de commande, ma LiveBox.
http://gutsouney.free.fr/Divers/IP%20LiveBox.rar
=============================
reboot.bat :
@echo OFF
tst10.exe /r:reboot.txt
le contenu du reboot.txt :
192.168.1.1
WAIT "login"
SEND "root\m"
WAIT "Password"
SEND "********\m"
WAIT "[root @ home]$"
SEND "reboot\m"
WAIT "[root @ home]$"
SEND "exit\m"
WAIT "[root @ home]$"
TST
Le script utilise le logiciel TST10.exe
Son fichier d'aide :
Usage Syntax:
tst10.exe /r:script.txt [options]
/r:script.txt run script.txt
[options] any of these:
/o:output.txt send session output to output.txt
/m run script in minimized window
Usage Example:
tst10.exe /r:script.txt /o:output.txt /m
Scripting Syntax:
HOSTNAME PORT port number optional, default: 23
WAIT "string" string to wait for
SEND "string" string to send
\" represents the a quote character
\m represents a <CR/LF>
\\ represents the backslash character
Scripting Example:
hostname.com 23
WAIT "login"
SEND "root\m"
WAIT "password"
SEND "mypassword\m"
WAIT ">"
SEND "dip internet.dip\m"
WAIT ">"
Scripting Note:
You can start with either WAIT or SEND commands,
but you *must* alternate them. ie: you can't use two
or more WAIT or SEND in a row.
Note:
TST will disconnect and close as soon
as its done with the last entry of the script.
If you need to, you can type in the terminal
window while the script is running.
===========================
Est-il possible de faire la même chose avec uniquement un script vbs ou
bat, en me passant de test10.exe ?
Merci de votre aide.