# Exercises ## Quiz 1 What is/are wrong in this job script: ```bash #!/bin/bash #$ -cwd #$ -t 1:10 #$ -j y #$ -o stdout.$JOB_ID.$SGE_TASK_ID #$ -l h_rt=00:10:00,h_data=1g echo 'hello' $SGE_TASK_ID ``` ## Quiz 2 What is wrong in this job script: ```bash #!/bin/bash #$ -cwd #$ -l h_data=2g,h_rt=00:10:00 #$ -j y #$ -o stdout.$JOB_ID.$TASK_ID #$ -N test #$ -t 1-100:10 for i in `seq 1 10`; do tid=$((SGE_TASK_ID + i)) echo "SGE_TASK_ID = $SGE_TASK_ID tid=$tid" done ``` ## Quiz 3 What is wrong in this job script: ```bash #!/bin/bash #$ -l h_data=2g,h_rt=00:10:00 #$ -j y #$ -o stdout.$JOB_ID.$SGE_TASK_ID #$ -N test #$ -t 1-100:100 for i in `seq 0 99`; do tid=$((SGE_TASK_ID + i)) echo "SGE_TASK_ID = $SGE_TASK_ID tid=$tid" done ```