You are here: 24 Data Staging > References > Sample User Job Script

24.8 Sample User Job Script

The code below is an example of a job script that a user might use to run a data staging job.

#!/bin/bash
#
# Sample data staging job script
#
# stage in directives
#MSUB --stageinsize=1MB
#MSUB --stagein=davidharris@source-server:/tmp/filein.tostage%davidharris@destination-server:/tmp/filein.staged
#
# stage out directives
#MSUB --stageoutsize=10GB
#MSUB --stageout=davidharris@destination-server:/tmp/fileout.tostage%davidharris@source-server:/tmp/fileout.staged
 
# run executable on the destination host using staged data
$HOME/bin/my_compute_executable < /tmp/filein.staged > /tmp/fileout.tostage

Related Topics 

© 2016 Adaptive Computing