Debian Codegraph @

ex18.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 # ex18.sh
3
4 # Does a 'whois domain-name' lookup on any of 3 alternate servers:
5 # ripe.net, cw.net, radb.net
6
7 # Place this script -- renamed 'wh' -- in /usr/local/bin
8
9 # Requires symbolic links:
10 # ln -s /usr/local/bin/wh /usr/local/bin/wh-ripe
11 # ln -s /usr/local/bin/wh /usr/local/bin/wh-apnic
12 # ln -s /usr/local/bin/wh /usr/local/bin/wh-tucows
13
14 E_NOARGS=75
15
16
17 if [scip-shell system . . `[`. -z "$1" ]
18 then
19 echoscip-shell system . . echo. "Usage: `basenamescip-shell system . . basename. $0` [domain-name]"
20 exit $E_NOARGS
21 fi
22
23 # Check script name and call proper server.
24 case `basenamescip-shell system . . basename. $0` in # Or: case ${0##*/} in
25 "wh" ) whois [email protected];;
26 "wh-ripe" ) whois [email protected];;
27 "wh-apnic" ) whois [email protected];;
28 "wh-cw" ) whois [email protected];;
29 * ) echoscip-shell system . . echo. "Usage: `basenamescip-shell system . . basename. $0` [domain-name]";;
30 esac
31
32 exit $?