TABLE OF CONTENTS


::pwtk::host_is_up

SYNOPSIS

proc ::pwtk::host_is_up {user_at_host} {

PURPOSE

Check if the remote host is up.

ARGUMENT

BEWARE

This command requires the 'ping' program.

RETURN VALUE

SOURCE

    set host [resolve_ssh_alias $user_at_host]
    if { [catch {exec ping -c 2 $host}] } {
        return 0
    } else {
        return 1
    }
}