From 34d5596cca5441830fc3de07ad1d05a2cce65226 Mon Sep 17 00:00:00 2001 From: "Scott C. MacCallum" Date: Sat, 11 Feb 2023 15:33:40 +0000 Subject: [PATCH] Adding web and gopher scripts --- visit-gopher.ksh | 5 +++++ website-to-other.ksh | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 visit-gopher.ksh create mode 100755 website-to-other.ksh diff --git a/visit-gopher.ksh b/visit-gopher.ksh new file mode 100755 index 0000000..7f2be15 --- /dev/null +++ b/visit-gopher.ksh @@ -0,0 +1,5 @@ +#/bin/ksh + +gopher gopher://sdf.org:70/1/users/scm/ + +exit 0 diff --git a/website-to-other.ksh b/website-to-other.ksh new file mode 100755 index 0000000..d3f3cf7 --- /dev/null +++ b/website-to-other.ksh @@ -0,0 +1,17 @@ +#/bin/ksh + +file=$(date +"%Y-%m") + +wget -O /sdf/arpa/ns/s/scm/index.html https://scm.sdf.org + +html2text -o /sdf/arpa/ns/s/scm/$file -ascii -style pretty index.html + +cat /sdf/arpa/ns/s/scm/$file > .plan + +mv /sdf/arpa/ns/s/scm/$file /sdf/arpa/ns/s/scm/gopher + +chmod 754 /sdf/arpa/ns/s/scm/gopher/$file + +rm /sdf/arpa/ns/s/scm/index.html + +exit 0