Subject: Re: [LINUX:8545] bashte ctrl ve escape
From: Semih Hazar (hazard@zagor.yeditepe.edu.tr)
Date: Wed 01 Sep 1999 - 03:53:24 EET DST
dip icin kendi scriptleri var. yani bash te falan degil.
man dip dersen orada bir ornek var...
man dan alip hafifce degistirdigim bir scrip asagida tabi bunu kendine
gore degisiklikler yapabilirisn, mesela mesgul caldiginda otomatik olarak
tekrar arama veya bir sonraki numarayi arama gibi..
hazard
--------------------------------------------------------
get $local 0.0.0.0
get $remote 0.0.0.0
# ip numarasini kendi verecek demek...
send ATQ0V1E1X4\r
wait OK 2
if $errlvl != 0 goto modem_trouble
dial isp_number_here
if $errlvl != 1 goto modem_trouble
sleep 2
wait ogin: 20
if $errlvl != 0 goto login_error
send username\n
wait ord: 20
if $errlvl != 0 goto password_error
send passwd\n
wait SOMETEXT 15
if $errlvl != 0 goto prompt_error
print CONNECTED $locip ---> $rmtip
mode PPP
# bunu mode ppp ile degistirmen gerek.....
goto exit
# error labels after that....
--------------------------------------------------------
At 03:29 PM 8/31/99 +0300, you wrote:
> selamlar, bashte yazacagim bir scripte "ctrl" ve "escape" gibi bazi
>karakterleride gondermek istiyorum. ornegin dip icin yazacagim bir script
>icin ( sleep 1 echo "username" 1 echo "my_passwd" sleep 1
>echo "mode ppp" ) | dip -t saygilar.
Listeden cikmak icin:
unsub linux
mesajini listeci@bilkent.edu.tr'a gonderiniz.
Lutfen Listeci icin MIME / HTML / Turkce Aksan kullanmayin.
Liste arsivinin adresi: http://listweb.bilkent.edu.tr/