[comp.sys.sgi] Response from remote host

finn.drablos@sintef.no (Finn Drablos) (06/07/91)

A short and simple (?) question:
How do I test, from within a shell script, whether a remote
machine is responding to network requests or not?

I guess that I am looking for something like ping, but
according to the man page, ping should not be used in
scripts ...

Regards,

==================

Finn Drablos                 PHONE +47 7 997710       FAX +47 7 997708
MR-Senteret, UNIMED, SINTEF  drablos@marvin.mr.sintef.no
N-7034 TRONDHEIM, NORWAY     finn.drablos@sintef.no 
----------------------------------------------------------------------

arc@kaibab.wpd.sgi.com (Andrew Cherenson) (06/08/91)

In article <288*finn.drablos@sintef.no> finn.drablos@sintef.no (Finn Drablos) writes:
>A short and simple (?) question:
>How do I test, from within a shell script, whether a remote
>machine is responding to network requests or not?
>
>I guess that I am looking for something like ping, but
>according to the man page, ping should not be used in
>scripts ...
>
>Regards,
>
>==================
>
>Finn Drablos                 PHONE +47 7 997710       FAX +47 7 997708
>MR-Senteret, UNIMED, SINTEF  drablos@marvin.mr.sintef.no
>N-7034 TRONDHEIM, NORWAY     finn.drablos@sintef.no 
>----------------------------------------------------------------------

Try "rpcinfo -u HOST portmap" (see rpcinfo(1M) for details).