📄 xcomm.src
字号:
#!/bin/sh# $Id: xcomm.src,v 1.16 1998/02/17 09:53:37 mdejonge Exp $## $Source: /home/mdejonge/CVS/projects/modem/scripts/xcomm.src,v $# $Revision: 1.16 $# Author: Merijn de Jonge# Email: mdejonge@wins.uva.nl# # # # This file is part of the modem communication package.# Copyright (C) 1996-1998 Merijn de Jonge# # This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2 of the License, or# (at your option) any later version.# # This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License for more details.# # You should have received a copy of the GNU General Public License# along with this program; if not, write to the Free Software# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.# # ## Make sure that the programs of the modem communication package are in# PATH. Otherwise, append the directory in which the binaries are installed# to PATH below.PATH=$PATH# STARTCOMM: Communication program to run when connected to remote site# Minicom can be used since version 1.73:# STARTCOMM="/usr/local/bin/xminicom -op$MODEM"# Also modemtalk that is included in the modem communication# package can be usedSTARTCOMM="xterm -e modemtalk -m $MODEM"# No changes below PROG=$0export PATHusage(){ /bin/cat <<ENDCAT ${PROG} (VERSION) usage: `basename ${PROG}` [-option...] [phone book entry] where options include: -h print out this message -v displays version information -r automatically redial when line is busy -q don't prompt for phone number when it can be determined from the entry in your phone book ENDCAT}version(){ echo "xcomm version VERSION"}start_comm(){ # Start communication program. exec ${STARTCOMM}}if [ "a$1" = "astart" ]then shift start_comm $*else for opt in $* do case ${opt} in -h ) usage ; exit 0 ;; -v ) version ; exit 0 ;; -r ) MODEMCONTROL_ARG="${MODEMCONTROL_ARG} -r" ;; -q ) MODEMCONTROL_ARG="${MODEMCONTROL_ARG} -q" ;; * ) if [ $# -eq 1 ] then MODEMCONTROL_ARG="${MODEMCONTROL_ARG} -e $1" else MODEMCONTROL_ARG="${MODEMCONTROL_ARG} ${opt}" fi ;; esac shift done modemcontrol ${MODEMCONTROL_ARG} "${PROG} start"fi## EOF scripts/xcomm.src#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -