grep -v local /etc/hosts | cut -d" " -f2 > ~/hostfile nano pi.py mpirun -np 2 -hostfile hostfile python pi.py