📄 cisdownload
字号:
: << READMEThis file uses 8-character tabstops.cisdownload @(#)Download CIS LIB file with XC JPRadley 20 May 92 vers 0.1Assumes System-wide preference for B+ set in GO PROFILE.Assumes Prompt character in all Fora is ^H.Could use more checks. Providing a non-existent Forum, or one which onehas not joined; providing an incorrect or inaccessible LIB number;providing a non-existent filename: all of these will cause failurewhile the meter's ticking.But if "all systems are go", then this should save a few pennies.READMEecho "\n\tDownload a file from CompuServe using XC"echo "\n\tDefault answers are in brackets"echo "\nWhat Forum [unixforum] ? \c"read GOFORUM=`echo ${GO:=UnixForum} | tr '[A-Z]' '[a-z]'`echo -n "\nWhat Library [1] ? \c"read RARYLIB="LIB "${RARY:=1}until test "$THERE"do echo "\nName (case-insensitive) of the file on CIS? \c" read THEREdoneWHERE="[$THERE] "while :doecho -n "\nPathname (case-sensitive) to use here $WHERE? " read AND HERE=${AND:-$THERE} if test -f "$HERE" || test -d "$HERE" then echo "\n'$HERE' already exists. You may BREAK from this" echo "script and either remove or rename '$HERE'," echo "or choose another name instead.\n" WHERE='' else break fidoneS=/usr/tmp/Download$$ # not publicly readable, to protect CIS passwordtrap 'rm $S' 0 2 3cat >$S <<sCrIpTcall ".cisdial"pause 3; transmit "^C"assign SERVICE eq "$FORUM"call ".pass"tty "on"waitfor "moment please..."if ! waitfor "forum !^H" 60; then transmit "bye^M"; quit; endiftransmit "$LIB^M"waitfor "!^H"set cis "on"transmit "DOW $THERE^M"transmit "$HERE^M"waitfor "!^H"set cis "off"transmit "off^M"quitsCrIpTxc -s$S
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -