diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2006-05-23 15:06:31 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2006-05-23 15:06:31 (GMT) |
commit | ba30ac46aef6eb65afc3fe153cc6c1c2485eb955 (patch) | |
tree | fa45e0ba40ec5756c23dd9fbb95f98f5902dc51f /bin | |
parent | 1f12eab01271cbea7f8ec156190aa60f6fee1918 (diff) | |
download | hdf5-ba30ac46aef6eb65afc3fe153cc6c1c2485eb955.zip hdf5-ba30ac46aef6eb65afc3fe153cc6c1c2485eb955.tar.gz hdf5-ba30ac46aef6eb65afc3fe153cc6c1c2485eb955.tar.bz2 |
[svn-r12367] Purpose:
fix.
Description:
More machines stop supporting "rsh machine command".
Worse yet, it hangs the "rsh machine command" process.
Solution:
Switch the order of testing remote execution to use
ssh first, then rsh.
Platforms tested:
no h5committest since it does not test this command.
Change is trivial and will monitor Daily test tonight.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/runtest | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/runtest b/bin/runtest index ce55f58..0e7db9e 100755 --- a/bin/runtest +++ b/bin/runtest @@ -156,7 +156,7 @@ PRINT_TRAILER() } # Figure out which remote command to use to reach a host. -# Try rsh first, then ssh. +# Try ssh first, then rsh since fewer machines support rsh exec. # $1--hostname to reach. CHECK_RSH() { @@ -185,10 +185,10 @@ CHECK_RSH() # Try remote command with host if it responds to ping. # Still try it if we don't know how to do ping. if [ no_ping = "$PING" ] || $PING $host $PINGCOUNT >/dev/null 2>&1; then - if rsh $host -n hostname >/dev/null 2>&1; then - RSH=rsh - elif ssh $host -n hostname >/dev/null 2>&1; then + if ssh $host -n hostname >/dev/null 2>&1; then RSH=ssh + elif rsh $host -n hostname >/dev/null 2>&1; then + RSH=rsh else PRINT cannot remote command with $host RSH="NoRemoteCommand" |