Batch files to execute and transfer files via sftp
I have two systems, one running SUSE and the other Red Hat.
On the Red Hat I want to run some scientific code which will dump data into a series of vtk files for viewing later in Paraview, but that system does not have Paraview installed nor does it have a graphics card.
The SUSE system has Paraview installed.
What I want to know is, can I create a batch file or something similar that will
1. run the scientific code on the Red Hat system
2. when the scientific code has finished then tell the Red Hat system to establish a connection to the SUSE system and transfer all the vtk files from the Red Hat to the SUSE and close the connection.
Thanks in advance