main_serial.xml
<?xml version="1.0" ?>
<!-- Sample XML Job File -->
<job>
<nodes>1</nodes>
<minutes>90</minutes>
<type>batch</type>
<affiliation>serial</affiliation>
<run>\\tc.cornell.edu\tc\users\your_userid\main_serial.bat</run>
</job>
main_serial.bat
set ROOTDIR=\\tc.cornell.edu\tc\users\%USERNAME%\jobs
set OUTDIR=\\tc.cornell.edu\tc\users\%USERNAME%\output
mkdir %OUTDIR%
REM Work on the local drive T:.
REM The setup script creates the directory T:\%USERNAME% if it does not exist.
REM If T:\%USERNAME% already exists, the setup deletes the files.
cd /D T:\
del /Q T:\%USERNAME%
mkdir %USERNAME%
cd T:\%USERNAME%
del /Q /S T:\%USERNAME%\*.*
REM sleep for a specified time. Then periodically copy files from T: to H:.
start /b %ROOTDIR%\copyback.bat
REM Copy executables and input files from H: to T:
copy %ROOTDIR%\*.* T:\%USERNAME%
REM Run the executable, writing standard out and standard error to local disk.
T:\%USERNAME%\my.exe 1>my.out 2>my.err
REM Copy files from T: to H:.
copy /Y T:\%USERNAME%\*.data %OUTDIR%
copy /Y T:\%USERNAME%\*.out %OUTDIR%
copy /Y T:\%USERNAME%\*.err %OUTDIR%
del /Q /S T:\%USERNAME%\*.*
vsched -c