mailhome.sh

来自「COOOL:CWP面向对象最优化库(CWP Object Oriented Op」· Shell 代码 · 共 58 行

SH
58
字号
#! /bin/sh# mailhome.sh - send a message back to CWP # adoped from mailhome.sh by John Stockwell, at CWP. Thanks, John!######################################################################  H.L. Deng, 16 Feb., 1996# Center for Wave Phenomena#####################################################################set -x# these items identify the date/release of the codesDATE="16 Feb. 1995"RELEASE="1.1"# home addressADDRESS="hdeng@dix.mines.edu"# messageMESSAGE="Installing the $DATE version (Release ${RELEASE}) of the COOOL."echoechoecho "######################"echo "######################"echoechoecho "To give us an idea of who uses our codes"echo "the master Makefile will email the following message:"echoecho " \"${MESSAGE}\" "echoecho "to: \"${ADDRESS}\" "echoechoechoecho "You will then be put on our CWP/OPTIMA mailing list"echo "and will be informed of future updates of the COOOL codes."echoechoecho "However, if you would rather not have this message sent"echo "you may specify this as your response to the next query."echoechoecho -n "Send automatic mail message back to CWP/OPTIMA?[y/n]"read RESP case $RESP in	y*|Y*) # continue		echo "$MESSAGE" | mail $ADDRESS	;;	*) # don't send the message		echo "Continuing without sending the mailing."	;;		esacexit 0

⌨️ 快捷键说明

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