uname_qx.pl -- A simple example of a remote command execution using the method qx of a GRID::Cluster object
./uname_qx.pl
This example uses the method qx of a GRID::Cluster object to create unidirectional pipes for communications among different processes. The example needs the definition of the the environment variable GRID_REMOTE_MACHINES. For example, from a bash shell a user can write:
export GRID_REMOTE_MACHINES=host1:host2:host3
to set that environment variable.
To install GRID::Cluster, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GRID::Cluster
CPAN shell
perl -MCPAN -e shell install GRID::Cluster
For more information on module installation, please visit the detailed CPAN module installation guide.