#!/bin/bash #Condor_q probe script by Ch.Fufezan 2006 if [ $# -ne 1 ];then USER=christian else USER=$1 fi echo ".----------------------- " /usr/local/condor/bin/condor_q -l $USER | awk -F '"| ' ' /ClusterId/ { i++; Id[i]=$3} /Iwd/ {;Job[i]=$4} /RemoteHost/ {node[i]=$4} END \ { printf(" %d Jobs running\n" , i); for (n=1; n<=i; n++) { printf("%2d %13s %5s %7s \n" , n,node[n],Id[n], Job[n]) } }' echo "----------------------- -- -"