Web site builder - 9 printERROR() { 10 echo “ERROR:” $@ >&2
Sunday, December 30th, 20079 printERROR() { 10 echo “ERROR:” $@ >&2 11 } 12 13 ################################################ 14 # Name: printWARNING 15 # Desc: prints an message to STDERR 16 # Args: $@ -> message to print 17 ################################################ 18 19 printWARNING() { 20 echo “WARNING:” $@ >&2 21 } 22 23 ################################################ 24 # Name: printUSAGE 25 # Desc: prints a USAGE message and then exits 26 # Args: $@ -> message to print 27 ################################################ 28 29 printUSAGE() { 30 echo “USAGE:” $@ 31 exit 32 } 33 34 ################################################ 35 # Name: promptYESNO 36 # Desc: ask a yes/no question 37 # Args: $1 -> The prompt 38 # $2 -> The default answer (optional) 39 # Vars: YESNO -> set to the users response 40 # y for yes, n for no 41 ################################################ 42 43 promptYESNO() { 44 45 if [ $# -lt 1 ] ; then 46 printERROR “Insufficient Arguments.” 47 return 1 48 fi 49 50 DEF_ARG=”" 51 YESNO=”" 52 53 case “$2″ in 54 [yY]|[yY][eE][sS]) 55 DEF_ARG=y ;; 56 [nN]|[nN][oO]) 57 DEF_ARG=n ;; 58 esac 59 60 while : 61 do 62
If you are in need for chaep and reliable webhost to host your website, our recommendation is http web server services.