Autor: Witold Przygoda (ufprzygo_at_cyf-kr.edu.pl)
Data: Tue 21 May 1996 - 23:29:25 MET DST
@cyf-kr.edu.pl>
Organization: Academic Computer Center CYFRONET Krakow
Distribution:
Witold Przygoda (ufprzygo_at_cyf-kr.edu.pl) wrote:
> Czy ktos moglby mi podeslac (podpowiedziec) jak zmodyfikowac
> login.cmd (albo moze i cos wiecej, np. winsock.ini), zeby
OK, dzieki za wszystkie odpowiedzi.
Przez nieuwage nie obejrzalem helpa - rzeczywiscie wszystko tam jest
co trzeba, lacznie z gotowym przykladem.... Jeszcze raz dzieki.
Witek P.
-------------------------
Multiple number
Some service providers have more than one number to dial when they
are busy. In this example, four numbers are pre-defined in the script.
What it does is try each number in turn until one responds with a
CONNECT. If it has already tried all four, then it goes back to the first
one. In this case it would repeat indefinitely, so you may want to put a
limit on the number of attempts. This can also be increased or decreased
to the number of dial in numbers your service provider has.
$number1 = "232224"
$number2 = "232225"
$number3 = "232226"
$number4 = "232227"
$number = ""
%num = 0
%ok = 0
%busy = 0
repeat
%num = %num + 1
if %num > 4
%num = 1
end
if %num = 1
$number = $number1
end
if %num = 2
$number = $number2
end
if %num = 3
$number = $number3
end
if %num = 4
$number = $number4
end
output "atdt"$number\13
%busy = [input 5 BUSY]
if !%busy
%ok = [input 30 CONNECT]
end
until %ok
To archiwum zostało wygenerowane przez hypermail 2.1.7 : Tue 18 May 2004 - 12:44:13 MET DST