Shell Programming in Unix, Linux and OS X, Fourth Edition (shannon powell's Library) by Stephen G. Kochan & Patrick Wood

Shell Programming in Unix, Linux and OS X, Fourth Edition (shannon powell's Library) by Stephen G. Kochan & Patrick Wood

Author:Stephen G. Kochan & Patrick Wood
Language: eng
Format: epub
Publisher: Addison-Wesley Profressional
Published: 2017-03-14T16:00:00+00:00


# Set up default values

mailopt=FALSE

interval=60

# process command options

while getopts mt: option

do

case "$option"

in

m) mailopt=TRUE;;

t) interval=$OPTARG;;

\?) echo "Usage: waitfor [-m] [-t n] user"

echo " -m means to be informed by mail"

echo " -t means check every n secs."

exit 1;;

esac

done

# Make sure a user name was specified

if [ "$OPTIND" -gt "$#" ]

then

echo "Missing user name!"

exit 2

fi

shiftcount=$((OPTIND – 1))

shift $shiftcount

user=$1

#

# Check for user logging on

#



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.