#Hello World example
a <- c("Hello, world!")
print(a)
#PBS -q econ_long
#PBS -N myscript
#PBS -d /scratch03/username
#PBS -l nodes=1:ppn=2,walltime=10:00:00,mem=1gb
#PBS -j oe
#PBS -M username@tulane.edu
#PBS -m abe
#PBS -o helloworld.log
module load intel
module load R-2.14.0
echo Start Job
cd /scratch03/username
date
pwd
R --vanilla --slave < helloworld.r > helloworld.out
echo End Job
This script requests that the contents be added to the econ_long queue. It will let the script run for up to 10 hours on 2 processors using 1GB of memory 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 sphynx.ccs.tulane.edu. Specify SFTP and use your CCS username and password. Once you login, change the directory to /scratch03/username. Then, upload helloworld.m and helloworld.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 sphynx.ccs.tulane.edu. Specify SSH and use your CCS username and password. For example, in Terminal:
username$ssh sphynx.ccs.tulane.edu
username@sphynx.ccs.tulane.edu's password:
username@sphynx>
username@login-02-01>cd /scratch03/username
username@login-02-01>qsub helloworld.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