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