#!/bin/bash #Options check status with s and tail current output with t # Define QUEUE in RNS space ... not local file system space #QUEUE=/home/xsede.org/prodhan/queues/new-jsdl-queue QUEUE=/resources/CCC/queues/NormalQueue RUNNING_JOB=${QUEUE}/jobs/mine/running/ while getopts o:s:j: option do case "${option}" in o) output=true;; s) checkstatus=true;; j) jobticket=$OPTARG;; esac done if [ -z "$jobticket" ] then echo "Please provide the job ticket to get the status" exit 1 fi if [ ! -z "$checkstatus" ] then fastgrid cat ${RUNNING_JOB}/$jobticket/activity/status fi # Do any pre-processig here if [ ! -z "$output" ] then fastgrid cat ${RUNNING_JOB}/$jobticket/activity/working-dir/out fi