diff options
author | Runxi Yu <me@runxiyu.org> | 2024-05-14 07:52:27 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-05-14 07:52:27 +0800 |
commit | cc50369d85d9ca656632dc68fcbb64fcb09ffd9f (patch) | |
tree | 11909ca7e1db82b697dc50d60a3c0e5848ff85aa | |
parent | 937fd906d627c5df27d24a1f374804f0fef1f40a (diff) | |
download | www-cc50369d85d9ca656632dc68fcbb64fcb09ffd9f.tar.gz |
hlog
-rwxr-xr-x | hlog.cgi | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/hlog.cgi b/hlog.cgi index ad8e134..25d813c 100755 --- a/hlog.cgi +++ b/hlog.cgi @@ -18,14 +18,17 @@ cat << EOF <body> <header> <h1>Runxi Yu's Hyperlog</h1> + <p> +EOF + +TZ='Asia/Shanghai' date -r /srv/hlog/runxiyu.hlog '+%Y-%m-%d %H:%M:%S %Z' + +cat << EOF + </p> </header> <article> <pre> EOF -TZ='Asia/Shanghai' ls --time-style '+%Y-%m-%d %H:%M:%S %Z' -l /srv/hlog/runxiyu.hlog -printf '</pre>' - -printf '<pre>' sed 's/&/\&/g; s/</\</g; s/>/\>/g; s/"/\"/g; s/'"'"'/\'/g' /srv/hlog/runxiyu.hlog cat << EOF </pre> |