1
1

Cut down on the output sent; we really don't need 250 lines worth of

output.  Let's try 100 and see how that goes.

This commit was SVN r2254.
Этот коммит содержится в:
Jeff Squyres 2004-08-23 06:25:59 +00:00
родитель 0402f520bc
Коммит 885f2213fb

Просмотреть файл

@ -32,7 +32,7 @@ md5_checksums="md5sums.txt"
sha1_checksums="sha1sums.txt" sha1_checksums="sha1sums.txt"
# max length of logfile to send in an e-mail # max length of logfile to send in an e-mail
max_log_len=250 max_log_len=100
# email subjects # email subjects
success_subject="Success" success_subject="Success"
@ -66,6 +66,7 @@ send_error_mail() {
for file in `/bin/ls $logdir/* | sort`; do for file in `/bin/ls $logdir/* | sort`; do
len="`wc -l $file | awk '{ print $1}'`" len="`wc -l $file | awk '{ print $1}'`"
if test "`expr $len \> $max_log_len`" = "1"; then if test "`expr $len \> $max_log_len`" = "1"; then
echo "[... previous lines snipped ...]" >> "$outfile"
tail -$max_log_len "$file" >> "$outfile" tail -$max_log_len "$file" >> "$outfile"
else else
cat "$file" >> "$outfile" cat "$file" >> "$outfile"