Some users prefer to streamline the storage of files (created during a job run) to Lou, within a PBS job. Because direct access to the Lou storage nodes from the NAS compute nodes has been disabled, all file transfers to Lou within a PBS job must first go through one of the appropriate front-end systems (for example, PFEs for bro_ele, sky_ele, cas_ait, rom_ait).
Here is an example of what you can add to your PBS script to accomplish this:
ssh to a PFE (for example, pfe21) and create a directory on lou where the files are to be copied.
ssh -q pfe21 "ssh -q lou mkdir -p $SAVDIR"
Here, $SAVDIR is assumed to have been defined earlier in the PBS script. Note the use of -q for quiet-mode, and double quotes so that shell variables are expanded prior to the ssh command being issued.
Use scp via a PFE to transfer the files.
ssh -q pfe21 "scp -q $RUNDIR/* lou:$SAVDIR"
Here, $RUNDIR is assumed to have been defined earlier in the PBS script.