scripts/domain-check
changeset 24 3beb0ea9ca69
parent 23 5d95402f2a3a
child 25 4cbcc8af8481
equal deleted inserted replaced
23:5d95402f2a3a 24:3beb0ea9ca69
     3 # Source: http://www.cyberciti.biz/files/scripts/domain-check-2.txt
     3 # Source: http://www.cyberciti.biz/files/scripts/domain-check-2.txt
     4 # Program: Domain Expiration Check <domain-check>
     4 # Program: Domain Expiration Check <domain-check>
     5 #
     5 #
     6 # Author: Matty < matty91 at gmail dot com >
     6 # Author: Matty < matty91 at gmail dot com >
     7 # 
     7 # 
     8 # Current Version: 1.95
     8 # Current Version: 1.96
     9 #
     9 #
    10 # Revision History:
    10 # Revision History:
    11 #  Version 1.96
    11 #  Version 1.96
    12 #    Rename variables so system variables aren't potentially changed. -- Eric Renfro <psi-jack@linux-help.org>
    12 #    Rename variables so system variables aren't potentially changed. -- Eric Renfro <psi-jack@linux-help.org>
    13 #    Code optimization and per-whois delay capability is possible. -- Eric Renfro <psi-jack@linux-help.org>
    13 #    Code optimization and per-whois delay capability is possible. -- Eric Renfro <psi-jack@linux-help.org>
    19 #    directly rather than from the variables they were asigned to. -- Chris Jones <chris@sysadminchris.com>
    19 #    directly rather than from the variables they were asigned to. -- Chris Jones <chris@sysadminchris.com>
    20 #  Version 1.9
    20 #  Version 1.9
    21 #    Bug fix and enhancement for .uk and .co.uk -- Vivek Gite <vivek@nixcraft.com>
    21 #    Bug fix and enhancement for .uk and .co.uk -- Vivek Gite <vivek@nixcraft.com>
    22 #
    22 #
    23 #  Version 1.8
    23 #  Version 1.8
    24 #    Bug fix added $mailContact -- Vivek Gite <vivek@nixcraft.com>
    24 #    Bug fix added $MAIL -- Vivek Gite <vivek@nixcraft.com>
    25 #
    25 #
    26 #  Version 1.7
    26 #  Version 1.7
    27 #    Added support for .jp domain names  -- Vivek Gite <vivek@nixcraft.com>
    27 #    Added support for .jp domain names  -- Vivek Gite <vivek@nixcraft.com>
    28 #
    28 #
    29 #  Version 1.6
    29 #  Version 1.6
   147 
   147 
   148 # Track tld types for query limiting:
   148 # Track tld types for query limiting:
   149 declare -A domainPoll
   149 declare -A domainPoll
   150 
   150 
   151 #############################################################################
   151 #############################################################################
   152 # Purpose: Convert a date from month-DAY-YEAR to Julian format
   152 # Purpose: Convert a date from MONTH-DAY-YEAR to Julian format
   153 # Acknowledgements: Code was adapted from examples in the book
   153 # Acknowledgements: Code was adapted from examples in the book
   154 #                   "Shell Scripting Recipes: A Problem-Solution Approach"
   154 #                   "Shell Scripting Recipes: A Problem-Solution Approach"
   155 #                   ( ISBN 1590594711 )
   155 #                   ( ISBN 1590594711 )
   156 # Arguments:
   156 # Arguments:
   157 #   $1 -> Month (e.g., 06)
   157 #   $1 -> Month (e.g., 06)