3 if [[ -e /tmp
/fsfsys-recent
]]; then
5 touch --date="1 minutes ago" "$tmp"
7 if [[ /tmp
/fsfsys-recent
-nt "$tmp" ]]; then
12 echo "error: wait 1 minute between requests"
17 touch --date="5 minute ago" "$tmp2"
19 if [[ /tmp
/fsfsys-recent
-nt "$tmp2" ]]; then
24 cat /tmp
/fsfsys-recent
29 d
='/var/lib/znc/moddata/log/iank/libera/#fsfsys'
30 date0
=$
(date +%Y-
%m-
%d
)
31 date1
=$
(date +%Y-
%m-
%d
-d yesterday
)
34 url
=$
( { sed "s/^/$date1 /" $f1; sed "s/^/$date0 /" $f0; } |
/a
/opt
/fpaste
/fpaste
-x 60 |
& grep -i '^http' |
sed -r 's,/view/,/view/raw/,' )
35 notice
='This url is not public and this message does not not imply permission to share it publicly. It expires in 60 minutes. Related: the "Public logging" section at https://libera.chat/policies/.'
36 printf "%s %s\n" "$url" "$notice" |
tee /tmp
/fsfsys-recent