#!/bin/bash userN=`whoami`; R=`qstat atlas | grep $userN | wc -l`; if [ "$1" != "" ] then qstat atlas | grep $userN echo "Jobs: $R" fi let Total=$R echo $Total