X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc2;h=7c33bea3251ebbd08cea977f6b72dff156be36d2;hb=f5bedaabc8ab8e0fa29238b70ab66bd7d37095d1;hp=fd7fcafb6670fec4f7516d6356ca4e30ffad7774;hpb=6f1f8a104c9b38936ade2d27e835479523985133;p=distro-setup diff --git a/brc2 b/brc2 index fd7fcaf..7c33bea 100644 --- a/brc2 +++ b/brc2 @@ -817,13 +817,15 @@ sl() { info_date=${tmp::11} type=${info_date: -1} info_date=${info_date::10} + info_sec=$(date -d @$info_date +%s) # debug #e $(( $(stat -c%Y /b/ds/brc) - $(date -d @$info_date +%s) )) - if (( $(stat -c%Y /b/ds/brc) > $(date -d @$info_date +%s) )); then + if (( $(stat -c%Y /b/ds/brc) > info_sec || $(stat -c%Y /b/ds/.bashrc) > info_sec )); then old=true fi else - tmp=$(command ssh -t "${args[@]}" "$remote" "if test -e /p/sshinfo; then echo yes; fi") || return + # use this weird yes thing to ensure we know ssh succeeded + tmp=$(command ssh "${args[@]}" "$remote" "if test -e /p/sshinfo; then echo yes; fi") || return if [[ $tmp == yes ]]; then type=a else @@ -920,11 +922,16 @@ testexim() { # note, for exim daemon, you can turn on debug options by # adding -d, etc to COMMONOPTIONS in # /etc/default/exim4 - # exim -d -t <<'EOF' - exim -i 'test@zroe.org, t2@zroe.org' <<'EOF' -From: ian@iankelling.org -To: test@zroe.org, t2@zroe.org -Subject: Testing Exim + # + # to specify recipients other than those in to, cc, bcc, you can use the cli args, eg: + # exim -i 'test@zroe.org, t2@zroe.org' <<'EOF' + # + # + exim -d -t <<'EOF' +From: i@dmarctest.b8.nz +To: mailman@dev.fsf.org +Subject: test2 +Reply-to: rtest@iankelling.org This is a test message. EOF