Give me a ping, Vasily. One ping only, please. ...
for some reason the original poster had problems with the Give command. The following procedure will implement the Give the command. Please note the commands are case sensitive. Also, you may wish to delete this command when you were done with it since it is in a system directory.
You should substitute your network name for ... .
Macintosh-HD -> Applications -> Utilities -> Terminal
in terminal, type
mac $ cd /sbin
mac $ pwd
/sbin
mac $ ls -l Give
ls: Give: No such file or directory
# verify that they Give command does not yet exist.
# since we are in a system directory we need to use sudo to access
mac $ sudo pico give
Password:
Hit return, and type in your password. When the editor comes up, type in these lines:
let "m = $# - 1"
shift $m
echo '$1=' $1
ping -c 1 $1
Control-O and Return to save, Control-X to quit.
mac $ sudo chmod 755 Give
mac $ ls -l Give
-rwxr-xr-x 1 root wheel 58 Nov 28 00:12 Give*
mac $ Give me a ping, Vasily. One ping only, please. google.com
$1= google.com
PING google.com (74.125.45.100): 56 data bytes
64 bytes from 74.125.45.100: icmp_seq=0 ttl=239 time=33.904 ms
--- google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 33.904/33.904/33.904/nan ms
mac $
mac $ Give google.com
$1= google.com
PING google.com (74.125.45.100): 56 data bytes
64 bytes from 74.125.45.100: icmp_seq=0 ttl=239 time=33.719 ms
--- google.com ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 33.719/33.719/33.719/nan ms
mac $ man ping
Robert