Pegasus InfoCorp: Web site design and web software development company

ADDHOSTS (3)

Add hosts to the virtual machine.

SYNOPSIS

    B
    C       int info = pvm_addhosts( char **hosts, int nhost, int *infos )
       
    

    Fortran call pvmfaddhost( host, info )

PARAMETERS

      An array of strings naming the hosts to be added. Pvmd must already be installed and the user must have an account on the specified hosts.

      Integer specifying the length of array hosts.

      Integer array of length nhost which returns the status for each host. Values less than zero indicate an error, while positive values are TIDs of the new hosts.

      Character string naming the host to be added.

      Integer status code returned by the routine. Values less than nhost indicate partial failure, and values less than 1 indicate total failure.

DESCRIPTION

    The routine pvm_addhosts adds the computers named in hosts to the configuration of computers making up the virtual machine. The names should have the same syntax as lines of a pvmd hostfile (see man page for pvmd3): A hostname followed by options of the form xx=y.

    If pvm_addhosts is successful, info will be equal to nhost. Partial success is indicated by 0 < info < nhost, and total failure by info < 1. The array infos can be checked to determine which host caused the error.

    The Fortran routine pvmfaddhost adds a single host to the configuration with each call. info will be 1 if successful or < 0 if error.