When no jobs have failed, hirs_logfile_analysis idles, appears to do nothing, to be hanging. This is because of the commandline it uses to sort failed logfiles: it's passing a list of all failed logfiles on a commandline to grep, but if there are none, the grep commandline is empty and grep reads from stdin, unsuccessfully. A workaround is to press Ctrl+D, then wait for the rest of the script to complete.
When no jobs have failed,
hirs_logfile_analysis
idles, appears to do nothing, to be hanging. This is because of the commandline it uses to sort failed logfiles: it's passing a list of all failed logfiles on a commandline togrep
, but if there are none, thegrep
commandline is empty andgrep
reads from stdin, unsuccessfully. A workaround is to press Ctrl+D, then wait for the rest of the script to complete.