In order to run a compute on Eddie, it must be submitted to the queue. This is done by using the "qsub" command to submit a script, which executes your job.
For example, to submit a job that will run no longer than 1 hour, 0 minutes and 0 seconds, the following command can be used:
qsub -l h_rt=01:00:00 jobscript.sh
A typical script might look something like this:
# This is a simple example of a batch script # request Bourne shell as shell for job #$ -S /bin/bash # Set the maximum run time to 1 hours, 0 minutes, 0 seconds: #$ -l h_rt=1:00:00 # print date and time /bin/date
This executes the binary command "date". Note that you can pass arguments, such as the maximum run time limit, either in the command line or in the script itself.
Any output from the command that would normally go to the console is instead output to a file in your home directory that will typically be called something like jobscript.sh.o12345. Any error messages that would normally go to the console will be output to a file named something like: jobscript.sh.e12345. 12345 is the number that is assigned to your job when you submit it.