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 [email protected]source-server:/tmp/filein.tostage%[email protected]:/tmp/filein.staged
#
# stage out directives
#MSUB --stageoutsize=10GB
#MSUB [email protected]:/tmp/fileout.tostage%[email protected]:/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