#!/bin/bash # guess the name of the slot's condor log file grep stdout /tmp/partition1/condor/log/StarterLog.slot${1} | tail -1 | awk '{print $5}'