if "%1"=="" goto usage :gettemp set TMPFILE=%TMP%\%RANDOM%.tmp if exist "%TMPFILE%" GOTO :gettemp echo 172.16.20.222>%TMPFILE% echo WAIT "Login">>%TMPFILE% echo SEND "r00t\m">>%TMPFILE% echo WAIT "Password:">>%TMPFILE% echo SEND "P@$$w0rd\m">>%TMPFILE% echo WAIT ">">>%TMPFILE% echo SEND "enable\m">>%TMPFILE% echo WAIT "#">>%TMPFILE% echo SEND "mobile 0 0 sms message send %1 %2 %3 %4 %5 %6 %7 %8 %9\m">>%TMPFILE% echo WAIT "#">>%TMPFILE% echo SEND "exit\m">>%TMPFILE% echo WAIT ">">>%TMPFILE% echo SEND "exit\m">>%TMPFILE% tst10.exe /r:%TMPFILE% /o:out del %TMPFILE% exit :usage echo Usage:%0 Phone_num Message
17 янв. 2015 г.
Send SMS - Addpac GS1002C from command line (using tst10.exe or other expect-like tools)
Подписаться на:
Сообщения (Atom)