⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 call

📁 支持X/YModem和cis_b+协议的串口通讯程序
💻
字号:
: <<AH_SO	"call": @(#) JPRadley Mon Jun 01 20:49:48 EDT 1992 v. 0.3	This file uses 8-character tabstops.  An ecological recycling program for obsolete modems.  Uses 'xc' to dial on port M, giving a key ($1) to look up in file P, whoselines have the format "one or more keys<TAB>number"  Thus, if P has "mom dad hometown<TAB>1-234-567-8900", this will dial thatnumber by typing "call mom", "call dad", "call home", "call town"; pick upthe handset within 10 seconds, talk to the folks.  If $1 isn't a valid key in P, then dial $1 itself, so that "call 12024561000"will dial the White House in DC.  "call grklfitch" does no harm: the modem won't react to ATDTgrklfitch.  Unless you have version 3.3 or higher of 'xc', do NOT hit the BREAK key whilethis script is running; you may be left with scads of orphaned 'xc' processes.AH_SO[ $# -lt 1 ] && exit    # one argument, key or number, neededM=ttyA07                # voice line with a modem on itP=/pub/jpr/lib/numbers  # data file                        # next line: <TAB> between '*' and '/'N=`sed -n "/$1/{s/.*$1.*	//pq}" $P`N=${N:-$1}              # if $1 wasn't a key, use $1 itselfS=/usr/tmp/call_$$      # temporary script for xc to usetrap "rm $S" 0          # clean upcat >$S <<JPRset bps 300             # override whatever the .xc startup file setsset cfile "/dev/tty"    # set up a hack for screen display, since later wecapture "on"            #  redirect the usual xc output to the bit bucketfile echo "dialing $N"  # spring the hackdial "W$N"              # precede by a 'w' to wait for dial tonepause 10                # give a human a chance to pick up the handset#hangup                 # dropping DTR may not work on old modemstransmit "ath^m"        #   so use this insteadpause 1                 # it's an old modem, give it a chance to reactquit                    # xc quits and the modem is off the voice lineJPRxc -l$M -s$S 2>/dev/null     # shut off normal xc screen output

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -