n=20;
m=100;
A=randn(n,m);
B=rand(n,m);
save test A B;
quit;
#PBS -q econ_main
#PBS -N mymfile
#PBS -l walltime=10:00:00
#PBS -j oe
#PBS -M username@tulane.edu
#PBS -m abe
#PBS -e stderr.txt
#PBS -o stdlog.txt
echo Start Job
cd /econ_00/username
date
pwd
matlab -nodisplay -nosplash < mymfile.m
echo End Job
This script requests that the contents be added to the econ_main queue. It will let the script run for up to 10 hours and send out an email when it begins, finishes, or aborts.
To do this, you need an FTP program, like Filezilla. The server address is ccs1.ccs.tulane.edu. Specify SFTP and use your CCS username and password. Once you login, change the directory to /econ_00/username. Then, upload mymfile.m and myscript.sh to that directory.
To do this from Windows, you need an SSH terminal, like Putty. To do this from Mac OS, you can use the built-in Terminal. The server address is ccs1.ccs.tulane.edu. Specify SSH and use your CCS username and password. For example, in Terminal:
username$ssh ccs1.ccs.tulane.edu
username@ccs1.ccs.tulane.edu's password:
username@ccs1>
username@ccs1>ssh ares
username@login-02-01>cd /econ_00/username
username@login-02-01>qsub < myscript.sh
jobid
username@login-02-01>qstat
username@login-02-01>qnodes
username@login-02-01>qdel jobid
206 Tilton Hall, Tulane University, New Orleans, LA 70118 tel 504-865-5321 fax 504-865-5869 pwatson@tulane.edu