I am trying to run some calculations on a remote computer. Basically I want to copy some files to the computer, load a software, execute the calculation, then retrieve the data back. I have created a passwordless connection already for this. Below is my attempt:
#!/bin/bash scp ./* username@host:/home/tmp work=$pwd ssh username@host cd /home/tmp module purge module load gcc/4.6.0 icc/11.1.075 ifort/11.1.075 compilers-extra mpi-openmpi/1.4.3-icc-11.1 vasp mpirun -np 20 vasp > out.vasp 2>&1 & scp ./* username@headnode:$work
The script just copies the files and logs in to the remote computer, but no calculations are initiated.