home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
telecomm
/
conn246e
/
connect
/
scripts
/
tkrcl2.scr
< prev
next >
Wrap
Text File
|
1993-07-24
|
967b
|
52 lines
# Minimailbox für den Fax-Empfang mit einem Class-2 Modem
# und dem TKR-Teleoffice
# Lauffähig erst ab CoNnect 1.65
MYID=491188 ; # Bitte hier die FaxID eintragen
function init_modem {
hangup
send 'at+flid='\"$MYID\"
waitfor OK; sleep 50m
send 'at+fcr=1'
waitfor OK; sleep 50m
send 'at+fclass=2'
waitfor OK; sleep 50m
send 'at+faa=1'
waitfor OK; sleep 500m
}
function data_call {
send 'Bitte laden Sie jetzt Ihre Daten mittels ZMODEM'
send 'zu mir.'
download -P c:/download/
}
function fax_call {
cd c:/teleoffi
faxdrv a
}
# Hauptschleife
while init_modem; flush; true; do
if get -n 30M ring; then
if [ a$ring = aRING ]; then
send 'ata'
sleep 500m
flush
if get -n 1M response dummy; then
if [ a$response = aCONNECT ]; then
data_call
else
if [ a$response = a+FCON ]; then
fax_call
fi
fi
fi
fi
fi
done